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_restore_service_factory.h" | 7 #include "apps/app_restore_service_factory.h" |
8 #include "apps/saved_files_service.h" | 8 #include "apps/saved_files_service.h" |
| 9 #include "apps/shell_window.h" |
9 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" | 10 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" |
10 #include "chrome/browser/extensions/event_router.h" | 11 #include "chrome/browser/extensions/event_router.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" |
16 #include "chrome/browser/ui/extensions/shell_window.h" | |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/extension_set.h" | 19 #include "chrome/common/extensions/extension_set.h" |
20 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 #include "content/public/browser/notification_types.h" | 22 #include "content/public/browser/notification_types.h" |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 #include "win8/util/win8_util.h" | 25 #include "win8/util/win8_util.h" |
26 #endif | 26 #endif |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 void AppRestoreService::StopObservingShellWindows() { | 189 void AppRestoreService::StopObservingShellWindows() { |
190 extensions::ShellWindowRegistry* shell_window_registry = | 190 extensions::ShellWindowRegistry* shell_window_registry = |
191 extensions::ShellWindowRegistry::Factory::GetForProfile( | 191 extensions::ShellWindowRegistry::Factory::GetForProfile( |
192 profile_, false /* create */); | 192 profile_, false /* create */); |
193 if (shell_window_registry) | 193 if (shell_window_registry) |
194 shell_window_registry->RemoveObserver(this); | 194 shell_window_registry->RemoveObserver(this); |
195 } | 195 } |
196 | 196 |
197 } // namespace apps | 197 } // namespace apps |
OLD | NEW |