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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/tab_contents/background_contents.cc
===================================================================
--- chrome/browser/tab_contents/background_contents.cc (revision 91771)
+++ chrome/browser/tab_contents/background_contents.cc (working copy)
@@ -9,6 +9,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_preferences_util.h"
#include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/url_constants.h"
#include "content/browser/browsing_instance.h"
@@ -37,7 +38,7 @@
// Register for our parent profile to shutdown, so we can shut ourselves down
// as well (should only be called for OTR profiles, as we should receive
// APP_TERMINATING before non-OTR profiles are destroyed).
- registrar_.Add(this, NotificationType::PROFILE_DESTROYED,
+ registrar_.Add(this, chrome::PROFILE_DESTROYED,
Source<Profile>(profile));
}
@@ -52,7 +53,7 @@
return;
Profile* profile = render_view_host_->process()->profile();
NotificationService::current()->Notify(
- NotificationType::BACKGROUND_CONTENTS_DELETED,
+ chrome::BACKGROUND_CONTENTS_DELETED,
Source<Profile>(profile),
Details<BackgroundContents>(this));
render_view_host_->Shutdown(); // deletes render_view_host
@@ -92,7 +93,7 @@
Profile* profile = render_view_host->process()->profile();
NotificationService::current()->Notify(
- NotificationType::BACKGROUND_CONTENTS_NAVIGATED,
+ chrome::BACKGROUND_CONTENTS_NAVIGATED,
Source<Profile>(profile),
Details<BackgroundContents>(this));
}
@@ -126,7 +127,7 @@
// TODO(rafaelw): Implement pagegroup ref-counting so that non-persistent
// background pages are closed when the last referencing frame is closed.
switch (type.value) {
- case NotificationType::PROFILE_DESTROYED:
+ case chrome::PROFILE_DESTROYED:
case NotificationType::APP_TERMINATING: {
delete this;
break;
@@ -164,7 +165,7 @@
void BackgroundContents::Close(RenderViewHost* render_view_host) {
Profile* profile = render_view_host->process()->profile();
NotificationService::current()->Notify(
- NotificationType::BACKGROUND_CONTENTS_CLOSED,
+ chrome::BACKGROUND_CONTENTS_CLOSED,
Source<Profile>(profile),
Details<BackgroundContents>(this));
delete this;
@@ -175,7 +176,7 @@
int error_code) {
Profile* profile = rvh->process()->profile();
NotificationService::current()->Notify(
- NotificationType::BACKGROUND_CONTENTS_TERMINATED,
+ chrome::BACKGROUND_CONTENTS_TERMINATED,
Source<Profile>(profile),
Details<BackgroundContents>(this));

Powered by Google App Engine
This is Rietveld 408576698