| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/chrome_notification_observer.h" | 5 #include "chrome/browser/extensions/chrome_notification_observer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" | |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 12 #include "extensions/browser/extension_system.h" |
| 13 #include "extensions/browser/process_manager.h" | 13 #include "extensions/browser/process_manager.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 ChromeNotificationObserver::ChromeNotificationObserver() { | 17 ChromeNotificationObserver::ChromeNotificationObserver() { |
| 18 // Notifications for extensions::ProcessManager | 18 // Notifications for extensions::ProcessManager |
| 19 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 19 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 20 content::NotificationService::AllSources()); | 20 content::NotificationService::AllSources()); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 OnBrowserWindowReady(browser); | 59 OnBrowserWindowReady(browser); |
| 60 break; | 60 break; |
| 61 } | 61 } |
| 62 | 62 |
| 63 default: | 63 default: |
| 64 NOTREACHED(); | 64 NOTREACHED(); |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace extensions | 68 } // namespace extensions |
| OLD | NEW |