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