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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.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/bookmarks/bookmark_bar_view.cc
===================================================================
--- chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (revision 91771)
+++ chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (working copy)
@@ -30,6 +30,7 @@
#include "chrome/browser/ui/views/event_utils.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
@@ -420,8 +421,8 @@
other_bookmarked_button_->SetEnabled(false);
Source<Profile> ns_source(profile_->GetOriginalProfile());
- registrar_.Add(this, NotificationType::BOOKMARK_BUBBLE_SHOWN, ns_source);
- registrar_.Add(this, NotificationType::BOOKMARK_BUBBLE_HIDDEN, ns_source);
+ registrar_.Add(this, chrome::BOOKMARK_BUBBLE_SHOWN, ns_source);
+ registrar_.Add(this, chrome::BOOKMARK_BUBBLE_HIDDEN, ns_source);
// Remove any existing bookmark buttons.
while (GetBookmarkButtonCount())
@@ -1142,7 +1143,7 @@
const NotificationDetails& details) {
DCHECK(profile_);
switch (type.value) {
- case NotificationType::BOOKMARK_BUBBLE_SHOWN: {
+ case chrome::BOOKMARK_BUBBLE_SHOWN: {
StopThrobbing(true);
GURL url = *(Details<GURL>(details).ptr());
const BookmarkNode* node = model_->GetMostRecentlyAddedNodeForURL(url);
@@ -1151,7 +1152,7 @@
StartThrobbing(node, false);
break;
}
- case NotificationType::BOOKMARK_BUBBLE_HIDDEN:
+ case chrome::BOOKMARK_BUBBLE_HIDDEN:
StopThrobbing(false);
break;

Powered by Google App Engine
This is Rietveld 408576698