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

Unified Diff: extensions/renderer/chrome_setting.cc

Issue 2843673002: [Extensions Bindings] Use gin::Arguments::GetAll() (Closed)
Patch Set: 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 | « extensions/renderer/api_binding.cc ('k') | extensions/renderer/declarative_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/chrome_setting.cc
diff --git a/extensions/renderer/chrome_setting.cc b/extensions/renderer/chrome_setting.cc
index 43dad5807dcc94a46e078033e10aca4cddabb2a3..81f1ca28bda63a6fd103324832136035a2f83e6a 100644
--- a/extensions/renderer/chrome_setting.cc
+++ b/extensions/renderer/chrome_setting.cc
@@ -133,11 +133,7 @@ void ChromeSetting::HandleFunction(const std::string& method_name,
v8::HandleScope handle_scope(isolate);
v8::Local<v8::Context> context = arguments->GetHolderCreationContext();
- std::vector<v8::Local<v8::Value>> argument_list;
- if (arguments->Length() > 0) {
- // Just copying handles should never fail.
- CHECK(arguments->GetRemaining(&argument_list));
- }
+ std::vector<v8::Local<v8::Value>> argument_list = arguments->GetAll();
std::string full_name = "types.ChromeSetting." + method_name;
std::unique_ptr<base::ListValue> converted_arguments;
« no previous file with comments | « extensions/renderer/api_binding.cc ('k') | extensions/renderer/declarative_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698