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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.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/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index 2a308955bf7cc0425a8dd3a18fccf44b6df19970..af6dda13fc5ff85f08056a098203eee3d36648ee 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -137,7 +137,7 @@ NewTabUI::NewTabUI(content::WebUI* web_ui)
content::URLDataSource::Add(profile, html_source.release());
pref_change_registrar_.Init(profile->GetPrefs());
- pref_change_registrar_.Add(prefs::kShowBookmarkBar,
+ pref_change_registrar_.Add(bookmarks::prefs::kShowBookmarkBar,
base::Bind(&NewTabUI::OnShowBookmarkBarChanged,
base::Unretained(this)));
}
@@ -216,7 +216,7 @@ void NewTabUI::EmitNtpStatistics() {
void NewTabUI::OnShowBookmarkBarChanged() {
base::StringValue attached(
- GetProfile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar) ?
+ GetProfile()->GetPrefs()->GetBoolean(bookmarks::prefs::kShowBookmarkBar) ?
"true" : "false");
web_ui()->CallJavascriptFunction("ntp.setBookmarkBarAttached", attached);
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698