Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
=================================================================== |
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 91968) |
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy) |
@@ -18,6 +18,7 @@ |
#include "chrome/browser/ui/views/frame/browser_view.h" |
#include "chrome/browser/ui/views/tabs/tab_strip.h" |
#include "chrome/browser/ui/views/toolbar_view.h" |
+#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "content/browser/tab_contents/tab_contents.h" |
@@ -206,7 +207,7 @@ |
AddChildView(avatar_button_.get()); |
UpdateAvatarInfo(); |
if (!browser_view_->IsOffTheRecord()) { |
- registrar_.Add(this, NotificationType::PROFILE_CACHED_INFO_CHANGED, |
+ registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, |
NotificationService::AllSources()); |
} |
} |
@@ -507,11 +508,11 @@ |
/////////////////////////////////////////////////////////////////////////////// |
// OpaqueBrowserFrameView, protected: |
-void OpaqueBrowserFrameView::Observe(NotificationType type, |
+void OpaqueBrowserFrameView::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- switch (type.value) { |
- case NotificationType::PROFILE_CACHED_INFO_CHANGED: |
+ switch (type) { |
+ case chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED: |
UpdateAvatarInfo(); |
LayoutAvatar(); |
break; |