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

Unified Diff: chrome/browser/ui/webui/settings/protocol_handlers_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
« no previous file with comments | « chrome/browser/ui/webui/options/startup_pages_handler.cc ('k') | components/ntp_snippets/pref_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
diff --git a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
index c851eb51e1356e54c40dd006b685bcc6d7396e9a..9da61fa78bb872a9b9e7567552f9343cd690227b 100644
--- a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
+++ b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
@@ -201,8 +201,8 @@ void ProtocolHandlersHandler::HandleClearDefault(const base::ListValue* args) {
}
void ProtocolHandlersHandler::HandleSetDefault(const base::ListValue* args) {
- const base::ListValue* list;
- CHECK(args->GetList(0, &list));
+ const base::ListValue* list =
+ static_cast<const base::ListValue*>(&args->base::Value::GetList()[0]);
const ProtocolHandler& handler(ParseHandlerFromArgs(list));
CHECK(!handler.IsEmpty());
GetProtocolHandlerRegistry()->OnAcceptRegisterProtocolHandler(handler);
« no previous file with comments | « chrome/browser/ui/webui/options/startup_pages_handler.cc ('k') | components/ntp_snippets/pref_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698