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

Unified Diff: components/sync/engine_impl/syncer_unittest.cc

Issue 2850213002: [Sync] Minor refactor around SyncCycle and ModelTypeSet usage. (Closed)
Patch Set: Fix comment grammar. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/engine_impl/syncer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/syncer_unittest.cc
diff --git a/components/sync/engine_impl/syncer_unittest.cc b/components/sync/engine_impl/syncer_unittest.cc
index 01713f58f9da64fa5481c049a8930010c29a5fca..27702c29de4ab51caca020276fe03773944ff40a 100644
--- a/components/sync/engine_impl/syncer_unittest.cc
+++ b/components/sync/engine_impl/syncer_unittest.cc
@@ -238,7 +238,9 @@ class SyncerTest : public testing::Test,
void OnBackedOffTypesChanged(ModelTypeSet backed_off_types) override {}
void OnMigrationRequested(ModelTypeSet types) override {}
- void ResetCycle() { cycle_.reset(SyncCycle::Build(context_.get(), this)); }
+ void ResetCycle() {
+ cycle_ = base::MakeUnique<SyncCycle>(context_.get(), this);
+ }
bool SyncShareNudge() {
ResetCycle();
« no previous file with comments | « components/sync/engine_impl/syncer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698