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

Unified Diff: components/autofill/browser/autofill_download.cc

Issue 16625004: components: Move user_prefs into user_prefs namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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: components/autofill/browser/autofill_download.cc
diff --git a/components/autofill/browser/autofill_download.cc b/components/autofill/browser/autofill_download.cc
index 409d586a8c9f30e02e814c6bfc043763584a9a77..cbb84e2481d5a0047d5f04b3b15b8363acff8298 100644
--- a/components/autofill/browser/autofill_download.cc
+++ b/components/autofill/browser/autofill_download.cc
@@ -80,7 +80,7 @@ AutofillDownloadManager::AutofillDownloadManager(BrowserContext* context,
negative_upload_rate_(0),
fetcher_id_for_unittest_(0) {
DCHECK(observer_);
- PrefService* preferences = components::UserPrefs::Get(browser_context_);
+ PrefService* preferences = user_prefs::UserPrefs::Get(browser_context_);
positive_upload_rate_ =
preferences->GetDouble(prefs::kAutofillPositiveUploadRate);
negative_upload_rate_ =
@@ -170,7 +170,7 @@ void AutofillDownloadManager::SetPositiveUploadRate(double rate) {
positive_upload_rate_ = rate;
DCHECK_GE(rate, 0.0);
DCHECK_LE(rate, 1.0);
- PrefService* preferences = components::UserPrefs::Get(browser_context_);
+ PrefService* preferences = user_prefs::UserPrefs::Get(browser_context_);
preferences->SetDouble(prefs::kAutofillPositiveUploadRate, rate);
}
@@ -180,7 +180,7 @@ void AutofillDownloadManager::SetNegativeUploadRate(double rate) {
negative_upload_rate_ = rate;
DCHECK_GE(rate, 0.0);
DCHECK_LE(rate, 1.0);
- PrefService* preferences = components::UserPrefs::Get(browser_context_);
+ PrefService* preferences = user_prefs::UserPrefs::Get(browser_context_);
preferences->SetDouble(prefs::kAutofillNegativeUploadRate, rate);
}
« no previous file with comments | « components/autofill/browser/autofill_common_test.cc ('k') | components/autofill/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698