| Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/browser_window_cocoa.mm (revision 91880)
|
| +++ chrome/browser/ui/cocoa/browser_window_cocoa.mm (working copy)
|
| @@ -51,9 +51,9 @@
|
| controller_(controller),
|
| confirm_close_factory_(browser) {
|
| // This pref applies to all windows, so all must watch for it.
|
| - registrar_.Add(this, NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
|
| + registrar_.Add(this, chrome::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
|
| NotificationService::AllSources());
|
| - registrar_.Add(this, NotificationType::SIDEBAR_CHANGED,
|
| + registrar_.Add(this, chrome::SIDEBAR_CHANGED,
|
| NotificationService::AllSources());
|
| }
|
|
|
| @@ -583,16 +583,16 @@
|
| return NEW_POPUP;
|
| }
|
|
|
| -void BrowserWindowCocoa::Observe(NotificationType type,
|
| +void BrowserWindowCocoa::Observe(int type,
|
| const NotificationSource& source,
|
| const NotificationDetails& details) {
|
| - switch (type.value) {
|
| + switch (type) {
|
| // Only the key window gets a direct toggle from the menu.
|
| // Other windows hear about it from the notification.
|
| - case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED:
|
| + case chrome::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED:
|
| [controller_ updateBookmarkBarVisibilityWithAnimation:YES];
|
| break;
|
| - case NotificationType::SIDEBAR_CHANGED:
|
| + case chrome::SIDEBAR_CHANGED:
|
| UpdateSidebarForContents(
|
| Details<SidebarContainer>(details)->tab_contents());
|
| break;
|
|
|