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

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

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/extensions/active_tab_permission_granter.cc ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 53d907bdea0a0b73b68cfd1b1c42553fc75b9a17..c78d8fc458d6a61ea640883b2d2d1a514cba693d 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1031,8 +1031,11 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
Profile::FromBrowserContext(host->GetBrowserContext());
if (host_profile->GetOriginalProfile() ==
profile_->GetOriginalProfile()) {
+ // We don't need to include tab permisisons here, since the extension
+ // was just loaded.
std::vector<ExtensionMsg_Loaded_Params> loaded_extensions(
- 1, ExtensionMsg_Loaded_Params(extension));
+ 1, ExtensionMsg_Loaded_Params(extension,
+ false /* no tab permissions */));
host->Send(
new ExtensionMsg_Loaded(loaded_extensions));
}
« no previous file with comments | « chrome/browser/extensions/active_tab_permission_granter.cc ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698