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

Unified Diff: chrome/browser/repost_form_warning_controller.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
« no previous file with comments | « chrome/browser/repost_form_warning_controller.h ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/repost_form_warning_controller.cc
===================================================================
--- chrome/browser/repost_form_warning_controller.cc (revision 91968)
+++ chrome/browser/repost_form_warning_controller.cc (working copy)
@@ -12,11 +12,11 @@
: tab_contents_(tab_contents),
window_(NULL) {
NavigationController* controller = &tab_contents->controller();
- registrar_.Add(this, NotificationType::LOAD_START,
+ registrar_.Add(this, content::NOTIFICATION_LOAD_START,
Source<NavigationController>(controller));
- registrar_.Add(this, NotificationType::TAB_CLOSING,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CLOSING,
Source<NavigationController>(controller));
- registrar_.Add(this, NotificationType::REPOST_WARNING_SHOWN,
+ registrar_.Add(this, content::NOTIFICATION_REPOST_WARNING_SHOWN,
Source<NavigationController>(controller));
}
@@ -47,16 +47,16 @@
}
}
-void RepostFormWarningController::Observe(NotificationType type,
+void RepostFormWarningController::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
// Close the dialog if we load a page (because reloading might not apply to
// the same page anymore) or if the tab is closed, because then we won't have
// a navigation controller anymore.
if (tab_contents_ &&
- (type == NotificationType::LOAD_START ||
- type == NotificationType::TAB_CLOSING ||
- type == NotificationType::REPOST_WARNING_SHOWN)) {
+ (type == content::NOTIFICATION_LOAD_START ||
+ type == content::NOTIFICATION_TAB_CLOSING ||
+ type == content::NOTIFICATION_REPOST_WARNING_SHOWN)) {
DCHECK_EQ(Source<NavigationController>(source).ptr(),
&tab_contents_->controller());
Cancel();
« no previous file with comments | « chrome/browser/repost_form_warning_controller.h ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698