| Index: chrome/browser/tabs/pinned_tab_service.cc
|
| ===================================================================
|
| --- chrome/browser/tabs/pinned_tab_service.cc (revision 91771)
|
| +++ chrome/browser/tabs/pinned_tab_service.cc (working copy)
|
| @@ -8,8 +8,8 @@
|
| #include "chrome/browser/tabs/pinned_tab_codec.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/common/chrome_notification_types.h"
|
| #include "content/common/notification_service.h"
|
| -#include "content/common/notification_type.h"
|
|
|
| static bool IsLastNormalBrowser(Browser* browser) {
|
| for (BrowserList::const_iterator i = BrowserList::begin();
|
| @@ -26,9 +26,9 @@
|
| : profile_(profile),
|
| got_exiting_(false),
|
| has_normal_browser_(false) {
|
| - registrar_.Add(this, NotificationType::BROWSER_OPENED,
|
| + registrar_.Add(this, chrome::BROWSER_OPENED,
|
| NotificationService::AllSources());
|
| - registrar_.Add(this, NotificationType::BROWSER_CLOSING,
|
| + registrar_.Add(this, chrome::BROWSER_CLOSING,
|
| NotificationService::AllSources());
|
| registrar_.Add(this, NotificationType::APP_EXITING,
|
| NotificationService::AllSources());
|
| @@ -41,7 +41,7 @@
|
| return;
|
|
|
| switch (type.value) {
|
| - case NotificationType::BROWSER_OPENED: {
|
| + case chrome::BROWSER_OPENED: {
|
| Browser* browser = Source<Browser>(source).ptr();
|
| if (!has_normal_browser_ && browser->is_type_tabbed() &&
|
| browser->profile() == profile_) {
|
| @@ -50,7 +50,7 @@
|
| break;
|
| }
|
|
|
| - case NotificationType::BROWSER_CLOSING: {
|
| + case chrome::BROWSER_CLOSING: {
|
| Browser* browser = Source<Browser>(source).ptr();
|
| if (has_normal_browser_ && browser->profile() == profile_) {
|
| if (*(Details<bool>(details)).ptr()) {
|
|
|