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

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

Issue 12313142: Revert 184837 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/utils.js
===================================================================
--- chrome/renderer/resources/extensions/utils.js (revision 184858)
+++ chrome/renderer/resources/extensions/utils.js (working copy)
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var chrome = requireNative('chrome').GetChrome();
-
function forEach(dict, f) {
for (var key in dict) {
if (dict.hasOwnProperty(key))
@@ -27,16 +25,5 @@
}
}
-// Specify |currentApi| if this should return an API for $refs in the current
-// namespace.
-function loadRefDependency(ref, currentApi) {
- var parts = ref.split(".");
- if (parts.length > 1)
- return chrome[parts.slice(0, parts.length - 1).join(".")];
- else
- return currentApi;
-}
-
exports.forEach = forEach;
-exports.loadRefDependency = loadRefDependency;
exports.lookup = lookup;

Powered by Google App Engine
This is Rietveld 408576698