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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_utils.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
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_utils.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_utils.cc b/chrome/browser/ui/bookmarks/bookmark_utils.cc
index 079b661e48e2f1226fb6cc7d4fd983dcbdb77bb5..0cd149be4e5919f0441dda7b44bf47f17b88fcd0 100644
--- a/chrome/browser/ui/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_utils.cc
@@ -297,10 +297,11 @@ void GetURLAndTitleToBookmark(content::WebContents* web_contents,
void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context) {
PrefService* prefs = user_prefs::UserPrefs::Get(browser_context);
- const bool always_show = !prefs->GetBoolean(prefs::kShowBookmarkBar);
+ const bool always_show =
+ !prefs->GetBoolean(bookmarks::prefs::kShowBookmarkBar);
// The user changed when the bookmark bar is shown, update the preferences.
- prefs->SetBoolean(prefs::kShowBookmarkBar, always_show);
+ prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, always_show);
}
base::string16 FormatBookmarkURLForDisplay(const GURL& url,
@@ -337,7 +338,8 @@ bool ShouldShowAppsShortcutInBookmarkBar(
Profile* profile,
chrome::HostDesktopType host_desktop_type) {
return IsAppsShortcutEnabled(profile, host_desktop_type) &&
- profile->GetPrefs()->GetBoolean(prefs::kShowAppsShortcutInBookmarkBar);
+ profile->GetPrefs()->GetBoolean(
+ bookmarks::prefs::kShowAppsShortcutInBookmarkBar);
}
bool ShouldRemoveBookmarkThisPageUI(Profile* profile) {
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698