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

Unified Diff: chrome/browser/tab_contents/background_contents.cc

Issue 10968064: Move the NOTIFICATION_APP_TERMINATING notification from content to chrome, since it's fired by chro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: cros compile Created 8 years, 3 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/prerender/prerender_contents.cc ('k') | chrome/browser/ui/cocoa/info_bubble_window.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/background_contents.cc
===================================================================
--- chrome/browser/tab_contents/background_contents.cc (revision 158279)
+++ chrome/browser/tab_contents/background_contents.cc (working copy)
@@ -37,7 +37,7 @@
content::WebContentsObserver::Observe(web_contents_.get());
// Close ourselves when the application is shutting down.
- registrar_.Add(this, content::NOTIFICATION_APP_TERMINATING,
+ registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
content::NotificationService::AllSources());
// Register for our parent profile to shutdown, so we can shut ourselves down
@@ -123,7 +123,7 @@
// background pages are closed when the last referencing frame is closed.
switch (type) {
case chrome::NOTIFICATION_PROFILE_DESTROYED:
- case content::NOTIFICATION_APP_TERMINATING: {
+ case chrome::NOTIFICATION_APP_TERMINATING: {
delete this;
break;
}
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/ui/cocoa/info_bubble_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698