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

Unified Diff: chrome/browser/ui/views/frame/global_menu_bar_x11.cc

Issue 490123003: Move bookmark_pref_names.* into bookmarks namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 6 years, 4 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/views/frame/global_menu_bar_x11.cc
diff --git a/chrome/browser/ui/views/frame/global_menu_bar_x11.cc b/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
index 6dd26c5d94d0f299ae35f05636e9bdc098d775c9..0ca335ebd013a5fc592a089c89937942c7f0a29c 100644
--- a/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
+++ b/chrome/browser/ui/views/frame/global_menu_bar_x11.cc
@@ -406,7 +406,7 @@ void GlobalMenuBarX11::InitServer(unsigned long xid) {
pref_change_registrar_.Init(browser_->profile()->GetPrefs());
pref_change_registrar_.Add(
- prefs::kShowBookmarkBar,
+ bookmarks::prefs::kShowBookmarkBar,
base::Bind(&GlobalMenuBarX11::OnBookmarkBarVisibilityChanged,
base::Unretained(this)));
OnBookmarkBarVisibilityChanged();
@@ -580,8 +580,10 @@ void GlobalMenuBarX11::OnBookmarkBarVisibilityChanged() {
PrefService* prefs = browser_->profile()->GetPrefs();
// Note: Unlike the GTK version, we don't appear to need to do tricks where
// we block activation while setting the toggle.
- menuitem_property_set_int(it->second, kPropertyToggleState,
- prefs->GetBoolean(prefs::kShowBookmarkBar));
+ menuitem_property_set_int(
+ it->second,
+ kPropertyToggleState,
+ prefs->GetBoolean(bookmarks::prefs::kShowBookmarkBar));
}
}
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698