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

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

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 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/autofill/DEPS ('k') | chrome/browser/autofill/autofill_common_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44a46442cfb901b6800dae2efd289f3cab5a70ad..042e83783667e2055044fb29b0fe0ac13d914264 100644
--- a/chrome/browser/autofill/autocomplete_history_manager.cc
+++ b/chrome/browser/autofill/autocomplete_history_manager.cc
@@ -9,6 +9,7 @@
#include "base/string16.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/api/prefs/pref_service_base.h"
#include "chrome/browser/autofill/autofill_external_delegate.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/profiles/profile.h"
@@ -117,7 +118,8 @@ AutocompleteHistoryManager::AutocompleteHistoryManager(
// May be NULL in unit tests.
web_data_service_ = WebDataServiceFactory::GetForProfile(
profile_, Profile::EXPLICIT_ACCESS);
- autofill_enabled_.Init(prefs::kAutofillEnabled, profile_->GetPrefs(), NULL);
+ autofill_enabled_.Init(
+ prefs::kAutofillEnabled, PrefServiceBase::ForProfile(profile_), NULL);
}
AutocompleteHistoryManager::~AutocompleteHistoryManager() {
@@ -244,7 +246,7 @@ AutocompleteHistoryManager::AutocompleteHistoryManager(
query_id_(0),
external_delegate_(NULL) {
autofill_enabled_.Init(
- prefs::kAutofillEnabled, profile_->GetPrefs(), NULL);
+ prefs::kAutofillEnabled, PrefServiceBase::ForProfile(profile_), NULL);
}
void AutocompleteHistoryManager::CancelPendingQuery() {
« no previous file with comments | « chrome/browser/autofill/DEPS ('k') | chrome/browser/autofill/autofill_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698