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

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

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 months 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 "build/build_config.h" 7 #include "build/build_config.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_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/ui/ash/app_sync_ui_state_factory.h" 12 #include "chrome/browser/ui/ash/app_sync_ui_state_factory.h"
13 #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" 14 #include "components/browser_sync/profile_sync_service.h"
15 #include "components/prefs/pref_service.h" 15 #include "components/prefs/pref_service.h"
16 #include "components/user_manager/user_manager.h" 16 #include "components/user_manager/user_manager.h"
17 #include "extensions/browser/extension_registry.h" 17 #include "extensions/browser/extension_registry.h"
18 #include "extensions/browser/extension_system.h" 18 #include "extensions/browser/extension_system.h"
19 19
20 namespace { 20 namespace {
21 21
22 // Max loading animation time in milliseconds. 22 // Max loading animation time in milliseconds.
23 const int kMaxSyncingTimeMs = 60 * 1000; 23 const int kMaxSyncingTimeMs = 60 * 1000;
24 24
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 void AppSyncUIState::OnStateChanged() { 136 void AppSyncUIState::OnStateChanged() {
137 DCHECK(sync_service_); 137 DCHECK(sync_service_);
138 CheckAppSync(); 138 CheckAppSync();
139 } 139 }
140 140
141 void AppSyncUIState::OnExtensionLoaded(content::BrowserContext* browser_context, 141 void AppSyncUIState::OnExtensionLoaded(content::BrowserContext* browser_context,
142 const extensions::Extension* extension) { 142 const extensions::Extension* extension) {
143 CheckAppSync(); 143 CheckAppSync();
144 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698