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

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

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. 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/multi_client_status_change_checke r.h" 5 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke r.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/scoped_observer.h" 8 #include "base/scoped_observer.h"
9 #include "components/browser_sync/profile_sync_service.h" 9 #include "components/browser_sync/profile_sync_service.h"
10 10
11 MultiClientStatusChangeChecker::MultiClientStatusChangeChecker( 11 MultiClientStatusChangeChecker::MultiClientStatusChangeChecker(
12 std::vector<ProfileSyncService*> services) 12 std::vector<browser_sync::ProfileSyncService*> services)
13 : services_(services) {} 13 : services_(services) {}
14 14
15 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {} 15 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {}
16 16
17 void MultiClientStatusChangeChecker::Wait() { 17 void MultiClientStatusChangeChecker::Wait() {
18 DVLOG(1) << "Await: " << GetDebugMessage(); 18 DVLOG(1) << "Await: " << GetDebugMessage();
19 19
20 if (IsExitConditionSatisfied()) { 20 if (IsExitConditionSatisfied()) {
21 DVLOG(1) << "Await -> Exit before waiting: " << GetDebugMessage(); 21 DVLOG(1) << "Await -> Exit before waiting: " << GetDebugMessage();
22 return; 22 return;
23 } 23 }
24 24
25 ScopedObserver<ProfileSyncService, MultiClientStatusChangeChecker> obs(this); 25 ScopedObserver<browser_sync::ProfileSyncService,
26 for (std::vector<ProfileSyncService*>::iterator it = services_.begin(); 26 MultiClientStatusChangeChecker>
27 obs(this);
28 for (std::vector<browser_sync::ProfileSyncService*>::iterator it =
29 services_.begin();
27 it != services_.end(); ++it) { 30 it != services_.end(); ++it) {
28 obs.Add(*it); 31 obs.Add(*it);
29 } 32 }
30 33
31 StartBlockingWait(); 34 StartBlockingWait();
32 } 35 }
33 36
34 void MultiClientStatusChangeChecker::OnStateChanged() { 37 void MultiClientStatusChangeChecker::OnStateChanged() {
35 CheckExitCondition(); 38 CheckExitCondition();
36 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698