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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.cc

Issue 437683002: Wire sync shutdown reason from PSS all the way down to sync manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/glue/sync_backend_host_mock.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync_driver/sync_frontend.h" 7 #include "components/sync_driver/sync_frontend.h"
8 8
9 namespace browser_sync { 9 namespace browser_sync {
10 10
(...skipping 30 matching lines...) Expand all
41 const std::string& passphrase, 41 const std::string& passphrase,
42 bool is_explicit) {} 42 bool is_explicit) {}
43 43
44 bool SyncBackendHostMock::SetDecryptionPassphrase( 44 bool SyncBackendHostMock::SetDecryptionPassphrase(
45 const std::string& passphrase) { 45 const std::string& passphrase) {
46 return false; 46 return false;
47 } 47 }
48 48
49 void SyncBackendHostMock::StopSyncingForShutdown() {} 49 void SyncBackendHostMock::StopSyncingForShutdown() {}
50 50
51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(ShutdownOption option) { 51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(
52 syncer::ShutdownReason reason) {
52 return scoped_ptr<base::Thread>(); 53 return scoped_ptr<base::Thread>();
53 } 54 }
54 55
55 void SyncBackendHostMock::UnregisterInvalidationIds() {} 56 void SyncBackendHostMock::UnregisterInvalidationIds() {}
56 57
57 void SyncBackendHostMock::ConfigureDataTypes( 58 void SyncBackendHostMock::ConfigureDataTypes(
58 syncer::ConfigureReason reason, 59 syncer::ConfigureReason reason,
59 const DataTypeConfigStateMap& config_state_map, 60 const DataTypeConfigStateMap& config_state_map,
60 const base::Callback<void(syncer::ModelTypeSet, 61 const base::Callback<void(syncer::ModelTypeSet,
61 syncer::ModelTypeSet)>& ready_task, 62 syncer::ModelTypeSet)>& ready_task,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 syncer::ModelTypeSet types, 131 syncer::ModelTypeSet types,
131 base::Callback<void(const std::vector<syncer::ModelType>& type, 132 base::Callback<void(const std::vector<syncer::ModelType>& type,
132 ScopedVector<base::ListValue>) > callback) {} 133 ScopedVector<base::ListValue>) > callback) {}
133 134
134 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 135 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
135 fail_initial_download_ = should_fail; 136 fail_initial_download_ = should_fail;
136 } 137 }
137 138
138 } // namespace browser_sync 139 } // namespace browser_sync
139 140
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.h ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698