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

Unified Diff: chrome/browser/autofill/autocomplete_history_manager.cc

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/autofill/autocomplete_history_manager.cc
diff --git a/chrome/browser/autofill/autocomplete_history_manager.cc b/chrome/browser/autofill/autocomplete_history_manager.cc
index 437d14d14f05a24c2e2a84c563336788f9a968e3..7ab4702bf2986cc96b5439d3459714eeeb9de13e 100644
--- a/chrome/browser/autofill/autocomplete_history_manager.cc
+++ b/chrome/browser/autofill/autocomplete_history_manager.cc
@@ -15,6 +15,7 @@
#include "chrome/common/autofill_messages.h"
#include "chrome/common/form_data.h"
#include "chrome/common/pref_names.h"
+#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -115,8 +116,9 @@ AutocompleteHistoryManager::AutocompleteHistoryManager(
pending_query_handle_(0),
query_id_(0),
external_delegate_(NULL) {
- autofill_enabled_.Init(prefs::kAutofillEnabled,
- PrefServiceFromBrowserContext(browser_context_));
+ autofill_enabled_.Init(
+ prefs::kAutofillEnabled,
+ components::UserPrefs::Get(browser_context_));
}
AutocompleteHistoryManager::~AutocompleteHistoryManager() {

Powered by Google App Engine
This is Rietveld 408576698