OLD | NEW |
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<browser_sync::ProfileSyncService*> services) | 12 std::vector<browser_sync::ProfileSyncService*> services) |
13 : services_(services), scoped_observer_(this) { | 13 : services_(services), scoped_observer_(this) { |
14 for (browser_sync::ProfileSyncService* service : services) { | 14 for (browser_sync::ProfileSyncService* service : services) { |
15 scoped_observer_.Add(service); | 15 scoped_observer_.Add(service); |
16 } | 16 } |
17 } | 17 } |
18 | 18 |
19 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {} | 19 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {} |
20 | 20 |
21 void MultiClientStatusChangeChecker::OnStateChanged() { | 21 void MultiClientStatusChangeChecker::OnStateChanged(syncer::SyncService* sync) { |
22 CheckExitCondition(); | 22 CheckExitCondition(); |
23 } | 23 } |
OLD | NEW |