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

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

Issue 8542001: Insert default stylesheet for platform apps. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Roll batch into ExtensionMsg_Loaded. Created 9 years, 1 month 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/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index bd34f2459719d93512c939efb3f673a149347912..e06ad1586af1872a587ffb2d278a7689ce0c8119 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -922,8 +922,10 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
Profile* host_profile =
Profile::FromBrowserContext(host->browser_context());
if (host_profile->GetOriginalProfile() == profile_->GetOriginalProfile()) {
+ std::vector<ExtensionMsg_Loaded_Params> loaded_extensions(
+ 1, ExtensionMsg_Loaded_Params(extension));
host->Send(
- new ExtensionMsg_Loaded(ExtensionMsg_Loaded_Params(extension)));
+ new ExtensionMsg_Loaded(loaded_extensions));
}
}
@@ -2319,16 +2321,18 @@ void ExtensionService::Observe(int type,
ExtensionFunctionDispatcher::GetAllFunctionNames(&function_names);
process->Send(new ExtensionMsg_SetFunctionNames(function_names));
- // Scripting whitelist. This is modified by tests and must be communicated
- // to renderers.
+ // Scripting whitelist. This is modified by tests and must be
+ // communicated to renderers.
Aaron Boodman 2011/11/14 22:48:07 Nit: seems like change is unnecessary.
miket_OOO 2011/11/14 23:48:51 OK. Exactly 80 columns is ugly in Emacs, that's al
Aaron Boodman 2011/11/14 23:55:09 Make window wider? :)
process->Send(new ExtensionMsg_SetScriptingWhitelist(
*Extension::GetScriptingWhitelist()));
// Loaded extensions.
+ std::vector<ExtensionMsg_Loaded_Params> loaded_extensions;
for (size_t i = 0; i < extensions_.size(); ++i) {
- process->Send(new ExtensionMsg_Loaded(
- ExtensionMsg_Loaded_Params(extensions_[i])));
+ loaded_extensions.push_back(
+ ExtensionMsg_Loaded_Params(extensions_[i]));
}
+ process->Send(new ExtensionMsg_Loaded(loaded_extensions));
break;
}
case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: {

Powered by Google App Engine
This is Rietveld 408576698