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

Unified Diff: chrome/browser/extensions/api/storage/storage_api.cc

Issue 22885002: c/b/extensions, json_schema_compiler: Do not use Value::Create*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed C-style casts. Created 7 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
Index: chrome/browser/extensions/api/storage/storage_api.cc
diff --git a/chrome/browser/extensions/api/storage/storage_api.cc b/chrome/browser/extensions/api/storage/storage_api.cc
index d86b76321433b5ab8a709f18118c88ddca099be8..f9c683106fbd119022b4e2211b4222ef665a15e9 100644
--- a/chrome/browser/extensions/api/storage/storage_api.cc
+++ b/chrome/browser/extensions/api/storage/storage_api.cc
@@ -235,7 +235,7 @@ bool StorageStorageAreaGetBytesInUseFunction::RunWithStorage(
return false;
}
- SetResult(base::Value::CreateIntegerValue(bytes_in_use));
+ SetResult(new base::FundamentalValue(static_cast<int>(bytes_in_use)));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698