Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3581)

Unified Diff: chrome/browser/ui/webui/md_history_ui.cc

Issue 2450663003: MD History: hide tooltip promo when drawer is swiped open (Closed)
Patch Set: on-lonely="fixUpCode_" Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/md_history_ui.cc
diff --git a/chrome/browser/ui/webui/md_history_ui.cc b/chrome/browser/ui/webui/md_history_ui.cc
index 9994327ed0ee78631f078d7d6f85cef652a48551..598c335c1079c3f5694116743ba5837fa5fb04b1 100644
--- a/chrome/browser/ui/webui/md_history_ui.cc
+++ b/chrome/browser/ui/webui/md_history_ui.cc
@@ -35,8 +35,6 @@
namespace {
-constexpr char kShowMenuPromoKey[] = "showMenuPromo";
-
content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
bool use_test_title) {
content::WebUIDataSource* source =
@@ -119,7 +117,7 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
prefs->GetBoolean(prefs::kAllowDeletingBrowserHistory);
source->AddBoolean("allowDeletingHistory", allow_deleting_history);
- source->AddBoolean(kShowMenuPromoKey,
+ source->AddBoolean("showMenuPromo",
!prefs->GetBoolean(prefs::kMdHistoryMenuPromoShown));
bool group_by_domain = base::CommandLine::ForCurrentProcess()->HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698