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

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

Issue 6248026: Rename Real* to Double* in values.* and dependent files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More renames Created 9 years, 11 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 0c35a74b330b4ff65da3d04f75636a43c656744b..f2011ef9a2bc014a4d4febc647c3df18df02cd94 100644
--- a/chrome/browser/autofill/autofill_download.cc
+++ b/chrome/browser/autofill/autofill_download.cc
@@ -54,9 +54,9 @@ AutoFillDownloadManager::AutoFillDownloadManager(Profile* profile)
if (profile_) {
PrefService* preferences = profile_->GetPrefs();
positive_upload_rate_ =
- preferences->GetReal(prefs::kAutoFillPositiveUploadRate);
+ preferences->GetDouble(prefs::kAutoFillPositiveUploadRate);
negative_upload_rate_ =
- preferences->GetReal(prefs::kAutoFillNegativeUploadRate);
+ preferences->GetDouble(prefs::kAutoFillNegativeUploadRate);
}
}
@@ -165,7 +165,7 @@ void AutoFillDownloadManager::SetPositiveUploadRate(double rate) {
DCHECK_LE(rate, 1.0);
DCHECK(profile_);
PrefService* preferences = profile_->GetPrefs();
- preferences->SetReal(prefs::kAutoFillPositiveUploadRate, rate);
+ preferences->SetDouble(prefs::kAutoFillPositiveUploadRate, rate);
}
void AutoFillDownloadManager::SetNegativeUploadRate(double rate) {
@@ -176,7 +176,7 @@ void AutoFillDownloadManager::SetNegativeUploadRate(double rate) {
DCHECK_LE(rate, 1.0);
DCHECK(profile_);
PrefService* preferences = profile_->GetPrefs();
- preferences->SetReal(prefs::kAutoFillNegativeUploadRate, rate);
+ preferences->SetDouble(prefs::kAutoFillNegativeUploadRate, rate);
}
bool AutoFillDownloadManager::StartRequest(

Powered by Google App Engine
This is Rietveld 408576698