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

Side by Side Diff: components/sync/engine/fake_sync_manager.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/sync/engine/fake_sync_manager.h" 5 #include "components/sync/engine/fake_sync_manager.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 16 matching lines...) Expand all
27 namespace syncer { 27 namespace syncer {
28 28
29 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, 29 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types,
30 ModelTypeSet progress_marker_types, 30 ModelTypeSet progress_marker_types,
31 ModelTypeSet configure_fail_types) 31 ModelTypeSet configure_fail_types)
32 : initial_sync_ended_types_(initial_sync_ended_types), 32 : initial_sync_ended_types_(initial_sync_ended_types),
33 progress_marker_types_(progress_marker_types), 33 progress_marker_types_(progress_marker_types),
34 configure_fail_types_(configure_fail_types), 34 configure_fail_types_(configure_fail_types),
35 last_configure_reason_(CONFIGURE_REASON_UNKNOWN), 35 last_configure_reason_(CONFIGURE_REASON_UNKNOWN),
36 num_invalidations_received_(0) { 36 num_invalidations_received_(0) {
37 fake_encryption_handler_.reset(new FakeSyncEncryptionHandler()); 37 fake_encryption_handler_ = base::MakeUnique<FakeSyncEncryptionHandler>();
38 } 38 }
39 39
40 FakeSyncManager::~FakeSyncManager() {} 40 FakeSyncManager::~FakeSyncManager() {}
41 41
42 ModelTypeSet FakeSyncManager::GetAndResetCleanedTypes() { 42 ModelTypeSet FakeSyncManager::GetAndResetCleanedTypes() {
43 ModelTypeSet cleaned_types = cleaned_types_; 43 ModelTypeSet cleaned_types = cleaned_types_;
44 cleaned_types_.Clear(); 44 cleaned_types_.Clear();
45 return cleaned_types; 45 return cleaned_types;
46 } 46 }
47 47
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { 260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) {
261 callback.Run(); 261 callback.Run();
262 } 262 }
263 263
264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, 264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch,
265 bool empty_jar) {} 265 bool empty_jar) {}
266 266
267 } // namespace syncer 267 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/attachments/on_disk_attachment_store.cc ('k') | components/sync/engine/net/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698