Removes sharing hub social platforms section.

fix https://github.com/brave/brave-browser/issues/26019
This commit is contained in:
mkarolin
2022-10-17 09:55:45 +09:00
committed by Simon Hong
parent 1d51314570
commit 27337d7458
2 changed files with 26 additions and 0 deletions
@@ -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
@@ -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;