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

Unified Diff: chrome/renderer/resources/extensions/app.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/app.js
===================================================================
--- chrome/renderer/resources/extensions/app.js (revision 125813)
+++ chrome/renderer/resources/extensions/app.js (working copy)
@@ -1,15 +1,17 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
- var natives = requireNative('app');
- var GetIsInstalled = natives.GetIsInstalled;
- var Install = natives.Install;
- var GetDetails = natives.GetDetails;
- var GetDetailsForFrame = natives.GetDetailsForFrame;
- var GetAppNotifyChannel = natives.GetAppNotifyChannel;
+var chrome = chrome || {};
+(function() {
+ native function GetChromeHidden();
+ native function GetIsInstalled();
+ native function Install();
+ native function GetDetails();
+ native function GetDetailsForFrame();
+ native function GetAppNotifyChannel();
- var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
+ var chromeHidden = GetChromeHidden();
var callbacks = {};
var nextCallbackId = 1;
@@ -39,3 +41,4 @@
delete callbacks[callbackId];
}
};
+})();
Property changes on: chrome/renderer/resources/extensions/app.js
___________________________________________________________________
Deleted: svn:mime-type
- text/javascript
Deleted: svn:mergeinfo

Powered by Google App Engine
This is Rietveld 408576698