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

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

Issue 2105033003: tabId support to chrome.extensions.getViews() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed code review Created 4 years, 5 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/file_entry_binding_util.js
diff --git a/chrome/renderer/resources/extensions/file_entry_binding_util.js b/chrome/renderer/resources/extensions/file_entry_binding_util.js
index a378fbaf5831ac9250435018e7fdeb087c98f708..8e70e873a86825f5128f83c8a633b36ccb00d1b9 100644
--- a/chrome/renderer/resources/extensions/file_entry_binding_util.js
+++ b/chrome/renderer/resources/extensions/file_entry_binding_util.js
@@ -18,7 +18,7 @@ var GetExtensionViews = requireNative('runtime').GetExtensionViews;
// previously saved file entries.
function getFileBindingsForApi(apiName) {
// Fallback to using the current window if no background page is running.
- var backgroundPage = GetExtensionViews(-1, 'BACKGROUND')[0] || window;
+ var backgroundPage = GetExtensionViews(-1, 'BACKGROUND', -1)[0] || window;
var backgroundPageModuleSystem = GetModuleSystem(backgroundPage);
// All windows use the bindFileEntryCallback from the background page so their

Powered by Google App Engine
This is Rietveld 408576698