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

Unified Diff: chrome/browser/ui/webui/options/startup_pages_handler.cc

Issue 2823073003: Make Use of Value::GetList API
Patch Set: Further Usages Created 3 years, 8 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/ui/webui/options/startup_pages_handler.cc
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
index 738625ddac06f0a6bddcb04f3ab26f2261e71d79..3e28c5049cc7ef1625e9462c1e44b3007516f300 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -215,8 +215,8 @@ void StartupPagesHandler::DragDropStartupPage(const base::ListValue* args) {
CHECK(args->GetInteger(0, &to_index));
- const base::ListValue* selected;
- CHECK(args->GetList(1, &selected));
+ const base::ListValue* selected =
+ static_cast<const base::ListValue*>(&args->base::Value::GetList()[1]);
std::vector<int> index_list;
for (size_t i = 0; i < selected->GetSize(); ++i) {
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/settings/protocol_handlers_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698