Chromium Code Reviews| 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) { |