summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/bookmarks/bookmark_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/bookmarks/bookmark_utils.cc')
-rw-r--r--chrome/browser/ui/bookmarks/bookmark_utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/bookmarks/bookmark_utils.cc b/chrome/browser/ui/bookmarks/bookmark_utils.cc
index d09165c..4d104be 100644
--- a/chrome/browser/ui/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_utils.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/pref_names.h"
+#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -240,7 +241,7 @@ void GetURLAndTitleToBookmark(content::WebContents* web_contents,
}
void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context) {
- PrefService* prefs = PrefServiceFromBrowserContext(browser_context);
+ PrefService* prefs = components::UserPrefs::Get(browser_context);
const bool always_show = !prefs->GetBoolean(prefs::kShowBookmarkBar);
// The user changed when the bookmark bar is shown, update the preferences.