| 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/app_window.h" | 9 #include "apps/app_window.h" |
| 10 #include "apps/browser/api/app_runtime/app_runtime_api.h" |
| 10 #include "apps/launcher.h" | 11 #include "apps/launcher.h" |
| 11 #include "apps/saved_files_service.h" | 12 #include "apps/saved_files_service.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" | |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "extensions/browser/extension_host.h" | 15 #include "extensions/browser/extension_host.h" |
| 16 #include "extensions/browser/extension_prefs.h" | 16 #include "extensions/browser/extension_prefs.h" |
| 17 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
| 18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
| 19 #include "extensions/common/extension_set.h" | 19 #include "extensions/common/extension_set.h" |
| 20 | 20 |
| 21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| 22 #include "win8/util/win8_util.h" | 22 #include "win8/util/win8_util.h" |
| 23 #endif | 23 #endif |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 void AppRestoreService::StopObservingAppLifetime() { | 143 void AppRestoreService::StopObservingAppLifetime() { |
| 144 AppLifetimeMonitor* app_lifetime_monitor = | 144 AppLifetimeMonitor* app_lifetime_monitor = |
| 145 AppLifetimeMonitorFactory::GetForProfile(profile_); | 145 AppLifetimeMonitorFactory::GetForProfile(profile_); |
| 146 // This might be NULL in tests. | 146 // This might be NULL in tests. |
| 147 if (app_lifetime_monitor) | 147 if (app_lifetime_monitor) |
| 148 app_lifetime_monitor->RemoveObserver(this); | 148 app_lifetime_monitor->RemoveObserver(this); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace apps | 151 } // namespace apps |
| OLD | NEW |