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

Unified Diff: chrome/browser/dom_ui/shown_sections_handler.cc

Issue 6254018: Allow chrome.send to pass number, boolean, null and arrays of those (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename function and fix indentation 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
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/shown_sections_handler.cc
diff --git a/chrome/browser/dom_ui/shown_sections_handler.cc b/chrome/browser/dom_ui/shown_sections_handler.cc
index d8f240372be279815a5854967ad080bdf8adad90..ed04b63f81da7068e2a55f935f3b53a166562e74 100644
--- a/chrome/browser/dom_ui/shown_sections_handler.cc
+++ b/chrome/browser/dom_ui/shown_sections_handler.cc
@@ -91,8 +91,8 @@ void ShownSectionsHandler::HandleGetShownSections(const ListValue* args) {
}
void ShownSectionsHandler::HandleSetShownSections(const ListValue* args) {
- int mode;
- CHECK(ExtractIntegerValue(args, &mode));
+ double mode;
+ CHECK(args->GetReal(0, &mode));
arv (Not doing code reviews) 2011/01/25 18:17:04 I'm going to do another patch to rename this to Ge
int old_mode = pref_service_->GetInteger(prefs::kNTPShownSections);
if (old_mode != mode) {
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698