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

Unified Diff: chrome/browser/extensions/active_tab_permission_granter.cc

Issue 296483011: Run any pending injections in ActiveScriptController if permission is granted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/browser/extensions/active_tab_permission_granter.cc
diff --git a/chrome/browser/extensions/active_tab_permission_granter.cc b/chrome/browser/extensions/active_tab_permission_granter.cc
index 16099220957a21243dace3eb369836e7d795d89c..bd791d43ab711596b226671e87d9a8e5c5529efc 100644
--- a/chrome/browser/extensions/active_tab_permission_granter.cc
+++ b/chrome/browser/extensions/active_tab_permission_granter.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/extensions/active_tab_permission_granter.h"
+#include "chrome/browser/extensions/active_script_controller.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
@@ -83,6 +84,10 @@ void ActiveTabPermissionGranter::GrantIfRequested(const Extension* extension) {
tab_id_,
extension->id(),
new_hosts));
+ // If more things ever need to know about this, we should consider making
+ // an observer class.
not at google - send to devlin 2014/05/22 20:44:49 yes indeed :) which is to say, good comment, don'
+ ActiveScriptController::GetForWebContents(web_contents())
not at google - send to devlin 2014/05/22 20:44:49 also add a note to do this after the IPC has been
Devlin 2014/05/22 22:12:36 Done.
+ ->OnActiveTabPermissionGranted(extension);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698