Chromium Code Reviews| 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); |
| } |
| } |
| } |