| 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 "chrome/browser/ui/ash/app_sync_ui_state.h" | 5 #include "chrome/browser/ui/ash/app_sync_ui_state.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | |
| 8 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/pending_extension_manager.h" | 9 #include "chrome/browser/extensions/pending_extension_manager.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/sync/profile_sync_service_factory.h" | 11 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 13 #include "chrome/browser/ui/ash/app_sync_ui_state_factory.h" | 12 #include "chrome/browser/ui/ash/app_sync_ui_state_factory.h" |
| 14 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" | 13 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" |
| 15 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/browser/profile_sync_service.h" |
| 15 #include "components/prefs/pref_service.h" |
| 16 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
| 17 #include "extensions/browser/extension_system.h" | 17 #include "extensions/browser/extension_system.h" |
| 18 | 18 |
| 19 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
| 20 #include "components/user_manager/user_manager.h" | 20 #include "components/user_manager/user_manager.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Max loading animation time in milliseconds. | 25 // Max loading animation time in milliseconds. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 void AppSyncUIState::OnStateChanged() { | 143 void AppSyncUIState::OnStateChanged() { |
| 144 DCHECK(sync_service_); | 144 DCHECK(sync_service_); |
| 145 CheckAppSync(); | 145 CheckAppSync(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void AppSyncUIState::OnExtensionLoaded(content::BrowserContext* browser_context, | 148 void AppSyncUIState::OnExtensionLoaded(content::BrowserContext* browser_context, |
| 149 const extensions::Extension* extension) { | 149 const extensions::Extension* extension) { |
| 150 CheckAppSync(); | 150 CheckAppSync(); |
| 151 } | 151 } |
| OLD | NEW |