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

Side by Side Diff: chrome/browser/sync/test/integration/quiesce_status_change_checker.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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/browser/profile_sync_service.h"
14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 14 #include "components/sync/sessions/sync_session_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.
24 bool ProgressMarkersMatch(const ProfileSyncService* service1, 24 bool ProgressMarkersMatch(const ProfileSyncService* service1,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 std::string QuiesceStatusChangeChecker::GetDebugMessage() const { 216 std::string QuiesceStatusChangeChecker::GetDebugMessage() const {
217 return base::StringPrintf("Waiting for quiescence of %" PRIuS " clients", 217 return base::StringPrintf("Waiting for quiescence of %" PRIuS " clients",
218 services_.size()); 218 services_.size());
219 } 219 }
220 220
221 void QuiesceStatusChangeChecker::OnServiceStateChanged( 221 void QuiesceStatusChangeChecker::OnServiceStateChanged(
222 ProfileSyncService* service) { 222 ProfileSyncService* service) {
223 CheckExitCondition(); 223 CheckExitCondition();
224 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698