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

Side by Side Diff: chrome/browser/sync/test/integration/quiesce_status_change_checker.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/test/integration/quiesce_status_change_checker.h" 5 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "components/browser_sync/browser/profile_sync_service.h" 13 #include "components/browser_sync/profile_sync_service.h"
14 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" 14 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Returns true if this service is disabled. 18 // Returns true if this service is disabled.
19 bool IsSyncDisabled(ProfileSyncService* service) { 19 bool IsSyncDisabled(ProfileSyncService* service) {
20 return !service->IsSetupInProgress() && !service->IsFirstSetupComplete(); 20 return !service->IsSetupInProgress() && !service->IsFirstSetupComplete();
21 } 21 }
22 22
23 // Returns true if these services have matching progress markers. 23 // Returns true if these services have matching progress markers.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 std::string QuiesceStatusChangeChecker::GetDebugMessage() const { 213 std::string QuiesceStatusChangeChecker::GetDebugMessage() const {
214 return base::StringPrintf("Waiting for quiescence of %" PRIuS " clients", 214 return base::StringPrintf("Waiting for quiescence of %" PRIuS " clients",
215 services_.size()); 215 services_.size());
216 } 216 }
217 217
218 void QuiesceStatusChangeChecker::OnServiceStateChanged( 218 void QuiesceStatusChangeChecker::OnServiceStateChanged(
219 ProfileSyncService* service) { 219 ProfileSyncService* service) {
220 CheckExitCondition(); 220 CheckExitCondition();
221 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698