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

Side by Side Diff: chrome/renderer/resources/extensions/webstore_custom_bindings.js

Issue 15855010: Make ExtensionMsg_MessageInvoke run a module system function rather than a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test compile Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Custom binding for the webstore API. 5 // Custom binding for the webstore API.
6 6
7 var webstoreNatives = requireNative('webstore'); 7 var webstoreNatives = requireNative('webstore');
8 8
9 function Installer() { 9 function Installer() {
10 this._pendingInstall = null; 10 this._pendingInstall = null;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 var installer = new Installer(); 44 var installer = new Installer();
45 45
46 var chromeWebstore = { 46 var chromeWebstore = {
47 install: function install(url, onSuccess, onFailure) { 47 install: function install(url, onSuccess, onFailure) {
48 installer.install(url, onSuccess, onFailure); 48 installer.install(url, onSuccess, onFailure);
49 } 49 }
50 }; 50 };
51 51
52 // Called by webstore_binding.cc. 52 // Called by webstore_binding.cc.
53 var chromeHiddenWebstore = { 53 function onInstallResponse(installId, success, error) {
54 onInstallResponse: function(installId, success, error) { 54 installer.onInstallResponse(installId, success, error);
55 installer.onInstallResponse(installId, success, error); 55 }
56 }
57 };
58 56
59 // These must match the names in InstallWebstorebinding in 57 // These must match the names in InstallWebstorebinding in
60 // chrome/renderer/extensions/dispatcher.cc. 58 // chrome/renderer/extensions/dispatcher.cc.
61 exports.chromeWebstore = chromeWebstore; 59 exports.chromeWebstore = chromeWebstore;
62 exports.chromeHiddenWebstore = chromeHiddenWebstore; 60 exports.onInstallResponse = onInstallResponse;
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/unload_event.js ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698