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

Unified Diff: chrome/browser/automation/automation_provider_observers.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/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index 3d1f780ba65aa395004c9bd07a324ddafaaae82c..1ece677a9d6f281136683be91baecaf5286ec0fc 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -130,12 +130,12 @@ DictionaryValue* InitialLoadObserver::GetTimingInformation() const {
DictionaryValue* item = new DictionaryValue;
base::TimeDelta delta_start = it->second.start_time() - init_time_;
- item->SetReal("load_start_ms", delta_start.InMillisecondsF());
+ item->SetDouble("load_start_ms", delta_start.InMillisecondsF());
if (it->second.stop_time().is_null()) {
item->Set("load_stop_ms", Value::CreateNullValue());
} else {
base::TimeDelta delta_stop = it->second.stop_time() - init_time_;
- item->SetReal("load_stop_ms", delta_stop.InMillisecondsF());
+ item->SetDouble("load_stop_ms", delta_stop.InMillisecondsF());
}
items->Append(item);
}
@@ -1250,8 +1250,8 @@ void AutomationProviderHistoryObserver::HistoryQueryComplete(
history::URLResult const &page = (*results)[i];
page_value->SetString("title", page.title());
page_value->SetString("url", page.url().spec());
- page_value->SetReal("time",
- static_cast<double>(page.visit_time().ToDoubleT()));
+ page_value->SetDouble("time",
+ static_cast<double>(page.visit_time().ToDoubleT()));
page_value->SetString("snippet", page.snippet().text());
page_value->SetBoolean(
"starred",
@@ -1284,7 +1284,7 @@ void AutomationProviderGetPasswordsObserver::OnPasswordStoreRequestDone(
password_val->SetString("username_value", password_form->username_value);
password_val->SetString("password_value", password_form->password_value);
password_val->SetString("signon_realm", password_form->signon_realm);
- password_val->SetReal(
+ password_val->SetDouble(
"time", static_cast<double>(password_form->date_created.ToDoubleT()));
password_val->SetString("origin_url", password_form->origin.spec());
password_val->SetString("username_element",

Powered by Google App Engine
This is Rietveld 408576698