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

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

Issue 10956034: Switching from ForXyz naming to FromXyz naming, for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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/autofill_download.cc
diff --git a/chrome/browser/autofill/autofill_download.cc b/chrome/browser/autofill/autofill_download.cc
index 484ae71772ea395e9d1c154aa1c86c3b40a357f1..66a63f22b050d5da38856891089f5d5bac6aa0c7 100644
--- a/chrome/browser/autofill/autofill_download.cc
+++ b/chrome/browser/autofill/autofill_download.cc
@@ -58,7 +58,8 @@ AutofillDownloadManager::AutofillDownloadManager(BrowserContext* context,
negative_upload_rate_(0),
fetcher_id_for_unittest_(0) {
DCHECK(observer_);
- PrefServiceBase* preferences = PrefServiceBase::ForContext(browser_context_);
+ PrefServiceBase* preferences =
+ PrefServiceBase::FromBrowserContext(browser_context_);
positive_upload_rate_ =
preferences->GetDouble(prefs::kAutofillPositiveUploadRate);
negative_upload_rate_ =
@@ -145,7 +146,8 @@ void AutofillDownloadManager::SetPositiveUploadRate(double rate) {
positive_upload_rate_ = rate;
DCHECK_GE(rate, 0.0);
DCHECK_LE(rate, 1.0);
- PrefServiceBase* preferences = PrefServiceBase::ForContext(browser_context_);
+ PrefServiceBase* preferences = PrefServiceBase::FromBrowserContext(
+ browser_context_);
preferences->SetDouble(prefs::kAutofillPositiveUploadRate, rate);
}
@@ -155,7 +157,8 @@ void AutofillDownloadManager::SetNegativeUploadRate(double rate) {
negative_upload_rate_ = rate;
DCHECK_GE(rate, 0.0);
DCHECK_LE(rate, 1.0);
- PrefServiceBase* preferences = PrefServiceBase::ForContext(browser_context_);
+ PrefServiceBase* preferences = PrefServiceBase::FromBrowserContext(
+ browser_context_);
preferences->SetDouble(prefs::kAutofillNegativeUploadRate, rate);
}
« no previous file with comments | « chrome/browser/autofill/autofill_common_test.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698