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

Unified Diff: content/browser/webui/web_ui.cc

Issue 8662051: retry r112077 - recently closed menu: respect middle click (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « content/browser/disposition_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui.cc
diff --git a/content/browser/webui/web_ui.cc b/content/browser/webui/web_ui.cc
index 38e9839d271a6c58fc006616a9cb0ead2f7c4c2c..202e75560891efb95d05e9ff03fef26bd415eb75 100644
--- a/content/browser/webui/web_ui.cc
+++ b/content/browser/webui/web_ui.cc
@@ -224,6 +224,11 @@ bool WebUIMessageHandler::ExtractIntegerValue(const ListValue* value,
std::string string_value;
if (value->GetString(0, &string_value))
return base::StringToInt(string_value, out_int);
+ double double_value;
+ if (value->GetDouble(0, &double_value)) {
+ *out_int = static_cast<int>(double_value);
+ return true;
+ }
NOTREACHED();
return false;
}
« no previous file with comments | « content/browser/disposition_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698