Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4655)

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 3163044: Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: review chanecs Created 10 years, 4 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
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extension_process_bindings.js
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index fee9b4c720977c0db03543db6c83fc01dff06e14..f5856a71ae1be4461e4b35d8fcf33fbb3922dfac 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -27,6 +27,9 @@ var chrome = chrome || {};
// ensure we don't expose the APIs in that case.
if (!IsExtensionProcess()) {
chromeHidden.onLoad.addListener(function (extensionId) {
+ if (!extensionId) {
+ return;
+ }
chrome.initExtension(extensionId, false);
});
return;
@@ -296,6 +299,9 @@ var chrome = chrome || {};
}
chromeHidden.onLoad.addListener(function (extensionId) {
+ if (!extensionId) {
+ return;
+ }
chrome.initExtension(extensionId, false);
// |apiFunctions| is a hash of name -> object that stores the
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698