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

Unified Diff: chrome/renderer/extensions/webstore_bindings.cc

Issue 15841013: Make miscellaneous_bindings and event_bindings Required as needed. Previously (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/renderer/extensions/webstore_bindings.cc
diff --git a/chrome/renderer/extensions/webstore_bindings.cc b/chrome/renderer/extensions/webstore_bindings.cc
index 275c04e9bbf42669d02472fc1045b32ee1becf44..19159dae17e309ddf2f00793b37aa7ce164189e5 100644
--- a/chrome/renderer/extensions/webstore_bindings.cc
+++ b/chrome/renderer/extensions/webstore_bindings.cc
@@ -213,12 +213,13 @@ void WebstoreBindings::OnInlineWebstoreInstallResponse(
const std::string& error) {
v8::HandleScope handle_scope;
v8::Context::Scope context_scope(context_->v8_context());
- v8::Handle<v8::Value> argv[3];
- argv[0] = v8::Integer::New(install_id);
- argv[1] = v8::Boolean::New(success);
- argv[2] = v8::String::New(error.c_str());
- context_->CallChromeHiddenMethod("webstore.onInstallResponse",
- arraysize(argv), argv, NULL);
+ v8::Handle<v8::Value> argv[] = {
+ v8::Integer::New(install_id),
+ v8::Boolean::New(success),
+ v8::String::New(error.c_str())
+ };
+ context_->module_system()->CallModuleMethod(
+ "webstore", "onInstallResponse", arraysize(argv), argv);
}
} // namespace extensions
« no previous file with comments | « chrome/renderer/extensions/module_system_unittest.cc ('k') | chrome/renderer/resources/extensions/app_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698