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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 9169042: Block plugins for platform apps (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 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/ui/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index c8972322280c690b89533d289a88bdd82a8dd398..fb5786656a49a920d15b082ed95076135efc35b7 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -66,6 +66,11 @@ void ShellWindow::Observe(int type,
}
void ShellWindow::RenderViewCreated(RenderViewHost* render_view_host) {
+ // Notify anyone interested that the app has started.
Mihai Parparita -not on Chrome 2012/01/25 19:52:49 We might have non-ShellWindow UIs for platform app
benwells 2012/01/27 04:03:52 Done: just used NOTIFICATION_EXTENSION_HOST_CREATE
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_PLATFORM_APP_STARTED,
+ content::Source<Profile>(host_->profile()),
+ content::Details<const Extension>(host_->extension()));
DisableNPAPIPlugins();
}

Powered by Google App Engine
This is Rietveld 408576698