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

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

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 10 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"
9 #include "components/browser_sync/profile_sync_service.h" 8 #include "components/browser_sync/profile_sync_service.h"
10 9
11 MultiClientStatusChangeChecker::MultiClientStatusChangeChecker( 10 MultiClientStatusChangeChecker::MultiClientStatusChangeChecker(
12 std::vector<browser_sync::ProfileSyncService*> services) 11 std::vector<browser_sync::ProfileSyncService*> services)
13 : services_(services), scoped_observer_(this) { 12 : services_(services), scoped_observer_(this) {
14 for (browser_sync::ProfileSyncService* service : services) { 13 for (browser_sync::ProfileSyncService* service : services) {
15 scoped_observer_.Add(service); 14 scoped_observer_.Add(service);
16 } 15 }
17 } 16 }
18 17
19 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {} 18 MultiClientStatusChangeChecker::~MultiClientStatusChangeChecker() {}
20 19
21 void MultiClientStatusChangeChecker::OnStateChanged() { 20 void MultiClientStatusChangeChecker::OnStateChanged() {
22 CheckExitCondition(); 21 CheckExitCondition();
23 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/migration_waiter.cc ('k') | chrome/browser/sync/test/integration/passwords_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698