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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 10 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/cocoa/bookmarks/bookmark_editor_controller.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
index c689ac9d80769250b16330a163334c8cb04a0ef5..46226e7a5341a4ea40da1723873abf896d4a3e75 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
@@ -13,6 +13,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_cell_single_line.h"
+#include "components/user_prefs/user_prefs.h"
#include "ui/base/l10n/l10n_util.h"
@interface BookmarkEditorController (Private)
@@ -70,7 +71,7 @@
if (node_) {
[self setInitialName:base::SysUTF16ToNSString(node_->GetTitle())];
PrefService* prefs = [self profile] ?
- PrefServiceFromBrowserContext([self profile]) :
+ components::UserPrefs::Get([self profile]) :
NULL;
string16 urlString =
chrome::FormatBookmarkURLForDisplay(node_->url(), prefs);

Powered by Google App Engine
This is Rietveld 408576698