OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "apps/app_restore_service.h" | 5 #include "apps/app_restore_service.h" |
6 | 6 |
7 #include "apps/app_lifetime_monitor_factory.h" | 7 #include "apps/app_lifetime_monitor_factory.h" |
8 #include "apps/app_restore_service_factory.h" | 8 #include "apps/app_restore_service_factory.h" |
9 #include "apps/saved_files_service.h" | 9 #include "apps/saved_files_service.h" |
| 10 #include "apps/shell_window.h" |
10 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" | 11 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" |
11 #include "chrome/browser/extensions/extension_host.h" | 12 #include "chrome/browser/extensions/extension_host.h" |
12 #include "chrome/browser/extensions/extension_prefs.h" | 13 #include "chrome/browser/extensions/extension_prefs.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/extension_system.h" | 15 #include "chrome/browser/extensions/extension_system.h" |
15 #include "chrome/browser/extensions/platform_app_launcher.h" | 16 #include "chrome/browser/extensions/platform_app_launcher.h" |
| 17 #include "chrome/common/chrome_notification_types.h" |
16 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
17 #include "chrome/common/extensions/extension_set.h" | 19 #include "chrome/common/extensions/extension_set.h" |
18 | 20 |
19 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
20 #include "win8/util/win8_util.h" | 22 #include "win8/util/win8_util.h" |
21 #endif | 23 #endif |
22 | 24 |
23 using extensions::Extension; | 25 using extensions::Extension; |
24 using extensions::ExtensionHost; | 26 using extensions::ExtensionHost; |
25 using extensions::ExtensionPrefs; | 27 using extensions::ExtensionPrefs; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 150 |
149 void AppRestoreService::StopObservingAppLifetime() { | 151 void AppRestoreService::StopObservingAppLifetime() { |
150 AppLifetimeMonitor* app_lifetime_monitor = | 152 AppLifetimeMonitor* app_lifetime_monitor = |
151 AppLifetimeMonitorFactory::GetForProfile(profile_); | 153 AppLifetimeMonitorFactory::GetForProfile(profile_); |
152 // This might be NULL in tests. | 154 // This might be NULL in tests. |
153 if (app_lifetime_monitor) | 155 if (app_lifetime_monitor) |
154 app_lifetime_monitor->RemoveObserver(this); | 156 app_lifetime_monitor->RemoveObserver(this); |
155 } | 157 } |
156 | 158 |
157 } // namespace apps | 159 } // namespace apps |
OLD | NEW |