Skip to content

Commit

Permalink
Removes sharing hub social platforms section.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarolin authored and simonhong committed Oct 17, 2022
1 parent 1d51314 commit 27337d7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#define BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW \
share_link_label_ = new views::Label( \
l10n_util::GetStringUTF16(IDS_SHARING_HUB_SHARE_LABEL)); \
MaybeSizeToContents(); \
Layout(); \
return;

#include "src/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc"
#undef BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc b/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc
index 515fb2ce8d47f75a09283438198691fdf78328e2..3214caa20c0b6b6833c2ed9ed63a0aef90708682 100644
--- a/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc
+++ b/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc
@@ -163,6 +163,7 @@ void SharingHubBubbleViewImpl::PopulateScrollView(
view->SetGroup(kActionButtonGroup);
}

+ BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW
action_list_view->AddChildView(std::make_unique<views::Separator>());

constexpr int kIndent = 12;

0 comments on commit 27337d7

Please sign in to comment.