Skip to content

Commit 27337d7

Browse files
mkarolinsimonhong
authored andcommitted
Removes sharing hub social platforms section.
fix brave/brave-browser#26019
1 parent 1d51314 commit 27337d7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
2+
* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
4+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
6+
#define BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW \
7+
share_link_label_ = new views::Label( \
8+
l10n_util::GetStringUTF16(IDS_SHARING_HUB_SHARE_LABEL)); \
9+
MaybeSizeToContents(); \
10+
Layout(); \
11+
return;
12+
13+
#include "src/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc"
14+
#undef BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
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
2+
index 515fb2ce8d47f75a09283438198691fdf78328e2..3214caa20c0b6b6833c2ed9ed63a0aef90708682 100644
3+
--- a/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc
4+
+++ b/chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.cc
5+
@@ -163,6 +163,7 @@ void SharingHubBubbleViewImpl::PopulateScrollView(
6+
view->SetGroup(kActionButtonGroup);
7+
}
8+
9+
+ BRAVE_SHARING_HUB_BUBBLE_VIEW_IMPL_POPULATE_SCROLL_VIEW
10+
action_list_view->AddChildView(std::make_unique<views::Separator>());
11+
12+
constexpr int kIndent = 12;

0 commit comments

Comments
 (0)