summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/sync/sync_setup_service_mock.cc
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2015-05-20 08:26:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-20 15:27:00 +0000
commit5548199bedbf5452f0655aa236bebed3726ea1f2 (patch)
treece383c529af1a67e37f3bcf21612e02a6b2a5bce /ios/chrome/browser/sync/sync_setup_service_mock.cc
parent2d90256078aca21c9ada9ec7699662596796d65c (diff)
downloadchromium_src-5548199bedbf5452f0655aa236bebed3726ea1f2.zip
chromium_src-5548199bedbf5452f0655aa236bebed3726ea1f2.tar.gz
chromium_src-5548199bedbf5452f0655aa236bebed3726ea1f2.tar.bz2
[iOS] Upstream SyncSetupService (and mock)
SyncSetupService allows configuring sync. It handles enabling and disabling it, as well as choosing datatypes. Most actions are delayed until a commit is done, to allow the complex sync setup flow on iOS. BUG=429756 Review URL: https://codereview.chromium.org/1148573002 Cr-Commit-Position: refs/heads/master@{#330736}
Diffstat (limited to 'ios/chrome/browser/sync/sync_setup_service_mock.cc')
-rw-r--r--ios/chrome/browser/sync/sync_setup_service_mock.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/ios/chrome/browser/sync/sync_setup_service_mock.cc b/ios/chrome/browser/sync/sync_setup_service_mock.cc
new file mode 100644
index 0000000..39be8b7
--- /dev/null
+++ b/ios/chrome/browser/sync/sync_setup_service_mock.cc
@@ -0,0 +1,14 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ios/chrome/browser/sync/sync_setup_service_mock.h"
+
+SyncSetupServiceMock::SyncSetupServiceMock(
+ sync_driver::SyncService* sync_service,
+ PrefService* prefs)
+ : SyncSetupService(sync_service, prefs) {
+}
+
+SyncSetupServiceMock::~SyncSetupServiceMock() {
+}