Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: chrome/browser/ui/ash/app_sync_ui_state.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698