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

Unified Diff: chrome/renderer/resources/extensions/webstore.js

Issue 9657026: Revert 125801 - Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/resources/extensions/webstore.js
===================================================================
--- chrome/renderer/resources/extensions/webstore.js (revision 125813)
+++ chrome/renderer/resources/extensions/webstore.js (working copy)
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
- var webstoreNatives = requireNative('webstore');
- var Install = webstoreNatives.Install;
+var chrome = chrome || {};
+(function() {
+ native function GetChromeHidden();
+ native function Install(preferredStoreUrl, onSuccess, onFailure);
- var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
+ var chromeHidden = GetChromeHidden();
var pendingInstalls = {};
chrome.webstore = new function() {
this.install = function(
@@ -39,3 +41,4 @@
delete pendingInstall[installId];
}
}
+})();
Property changes on: chrome/renderer/resources/extensions/webstore.js
___________________________________________________________________
Deleted: svn:mime-type
- text/javascript
« no previous file with comments | « chrome/renderer/resources/extensions/web_request_custom_bindings.js ('k') | chrome/renderer/resources/require.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698