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

Side by Side Diff: chrome/browser/sync/test/integration/migration_waiter.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/migration_waiter.h" 5 #include "chrome/browser/sync/test/integration/migration_waiter.h"
6 6
7 #include <string>
8
9 #include "base/logging.h" 7 #include "base/logging.h"
10 #include "chrome/browser/sync/test/integration/migration_watcher.h" 8 #include "chrome/browser/sync/test/integration/migration_watcher.h"
11 9
12 MigrationWaiter::MigrationWaiter(syncer::ModelTypeSet expected_types, 10 MigrationWaiter::MigrationWaiter(syncer::ModelTypeSet expected_types,
13 MigrationWatcher* watcher) 11 MigrationWatcher* watcher)
14 : watcher_(watcher), expected_types_(expected_types) { 12 : watcher_(watcher), expected_types_(expected_types) {
15 DCHECK(!expected_types_.Empty()); 13 DCHECK(!expected_types_.Empty());
16 watcher_->set_migration_waiter(this); 14 watcher_->set_migration_waiter(this);
17 } 15 }
18 16
(...skipping 10 matching lines...) Expand all
29 27
30 std::string MigrationWaiter::GetDebugMessage() const { 28 std::string MigrationWaiter::GetDebugMessage() const {
31 return "Waiting to migrate (" + ModelTypeSetToString(expected_types_) + 29 return "Waiting to migrate (" + ModelTypeSetToString(expected_types_) +
32 "); " + "Currently migrated: (" + 30 "); " + "Currently migrated: (" +
33 ModelTypeSetToString(watcher_->GetMigratedTypes()) + ")"; 31 ModelTypeSetToString(watcher_->GetMigratedTypes()) + ")";
34 } 32 }
35 33
36 void MigrationWaiter::OnMigrationStateChange() { 34 void MigrationWaiter::OnMigrationStateChange() {
37 CheckExitCondition(); 35 CheckExitCondition();
38 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698