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

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

Issue 396493004: Get rid of some uses of CreateDoubleValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: right number of args + fix lint error Created 6 years, 5 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/performance_monitor/performance_monitor_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
diff --git a/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc b/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
index 2f408d295f23fdbd5a604f1d2b61972436ea8f44..23c164a587c3d9c3f51f2db772ae303528af213e 100644
--- a/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
+++ b/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
@@ -34,9 +34,8 @@ void QuotaInternalsHandler::RegisterMessages() {
}
void QuotaInternalsHandler::ReportAvailableSpace(int64 available_space) {
- scoped_ptr<base::Value> avail(
- base::Value::CreateDoubleValue(static_cast<double>(available_space)));
- SendMessage("AvailableSpaceUpdated", *avail);
+ SendMessage("AvailableSpaceUpdated",
+ base::FundamentalValue(static_cast<double>(available_space)));
}
void QuotaInternalsHandler::ReportGlobalInfo(const GlobalStorageInfo& data) {
« no previous file with comments | « chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698