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

Unified Diff: chrome/common/extensions/extension.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/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 76215e4c8400d55e99c75c030ed131dbb58ff52c..90b2c3ad05eac82e51c8294b5f360ea780bd908a 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -1493,7 +1493,7 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_key,
((color_list->GetSize() != 3) &&
((color_list->GetSize() != 4) ||
// For RGBA, the fourth item must be a real or int alpha value
- (!color_list->GetReal(3, &alpha) &&
+ (!color_list->GetDouble(3, &alpha) &&
!color_list->GetInteger(3, &alpha_int)))) ||
// For both RGB and RGBA, the first three items must be ints (R,G,B)
!color_list->GetInteger(0, &color) ||
@@ -1516,9 +1516,9 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_key,
int vi;
if (!tints_value->GetListWithoutPathExpansion(*iter, &tint_list) ||
tint_list->GetSize() != 3 ||
- !(tint_list->GetReal(0, &v) || tint_list->GetInteger(0, &vi)) ||
- !(tint_list->GetReal(1, &v) || tint_list->GetInteger(1, &vi)) ||
- !(tint_list->GetReal(2, &v) || tint_list->GetInteger(2, &vi))) {
+ !(tint_list->GetDouble(0, &v) || tint_list->GetInteger(0, &vi)) ||
+ !(tint_list->GetDouble(1, &v) || tint_list->GetInteger(1, &vi)) ||
+ !(tint_list->GetDouble(2, &v) || tint_list->GetInteger(2, &vi))) {
*error = errors::kInvalidThemeTints;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698