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

Unified Diff: chrome/browser/ui/webui/quota_internals_handler.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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/ui/webui/print_preview_ui.cc ('k') | chrome/browser/ui/webui/sync_internals_ui_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/quota_internals_handler.cc
diff --git a/chrome/browser/ui/webui/quota_internals_handler.cc b/chrome/browser/ui/webui/quota_internals_handler.cc
index bb874de8fe22d624062b7a85212feb3b5d82ad9b..cdfcd0c474db66341615cb7eb3a59de150572b36 100644
--- a/chrome/browser/ui/webui/quota_internals_handler.cc
+++ b/chrome/browser/ui/webui/quota_internals_handler.cc
@@ -30,7 +30,7 @@ void QuotaInternalsHandler::RegisterMessages() {
void QuotaInternalsHandler::ReportAvailableSpace(int64 available_space) {
scoped_ptr<base::Value> avail(
- base::Value::CreateDoubleValue(static_cast<double>(available_space)));
+ base::NumberValue::New(static_cast<double>(available_space)));
SendMessage("AvailableSpaceUpdated", *avail);
}
@@ -73,7 +73,7 @@ void QuotaInternalsHandler::ReportStatistics(const Statistics& stats) {
void QuotaInternalsHandler::SendMessage(const std::string& message,
const base::Value& value) {
- scoped_ptr<base::Value> message_data(base::Value::CreateStringValue(message));
+ scoped_ptr<base::Value> message_data(base::StringValue::New(message));
web_ui_->CallJavascriptFunction("cr.quota.messageHandler",
*message_data,
value);
« no previous file with comments | « chrome/browser/ui/webui/print_preview_ui.cc ('k') | chrome/browser/ui/webui/sync_internals_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698