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

Unified Diff: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.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/ui/views/compact_nav/compact_location_bar_view_host.cc
===================================================================
--- chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc (revision 91968)
+++ chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc (working copy)
@@ -352,9 +352,9 @@
if (tab_contents->is_loading()) {
// Register to NavigationController LOAD_STOP so that we can autohide
// when loading is done.
- if (!registrar_.IsRegistered(this, NotificationType::LOAD_STOP,
+ if (!registrar_.IsRegistered(this, content::NOTIFICATION_LOAD_STOP,
Source<NavigationController>(&tab_contents->controller()))) {
- registrar_.Add(this, NotificationType::LOAD_STOP,
+ registrar_.Add(this, content::NOTIFICATION_LOAD_STOP,
Source<NavigationController>(&tab_contents->controller()));
}
} else {
@@ -374,14 +374,14 @@
////////////////////////////////////////////////////////////////////////////////
// CompactLocationBarViewHost, NotificationObserver implementation:
-void CompactLocationBarViewHost::Observe(NotificationType type,
+void CompactLocationBarViewHost::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::LOAD_STOP: {
+ switch (type) {
+ case content::NOTIFICATION_LOAD_STOP: {
StartAutoHideTimer();
// This is one shot deal...
- registrar_.Remove(this, NotificationType::LOAD_STOP, source);
+ registrar_.Remove(this, content::NOTIFICATION_LOAD_STOP, source);
break;
}
default:

Powered by Google App Engine
This is Rietveld 408576698