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: components/sync_driver/fake_sync_service.cc

Issue 1175243009: [Sync] Rename SyncEnabledAndLoggedIn() to CanStartSync(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a const transition. Created 5 years, 6 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
« no previous file with comments | « components/sync_driver/fake_sync_service.h ('k') | components/sync_driver/sync_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_driver/fake_sync_service.h" 5 #include "components/sync_driver/fake_sync_service.h"
6 6
7 namespace sync_driver { 7 namespace sync_driver {
8 8
9 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) { 9 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
10 } 10 }
(...skipping 22 matching lines...) Expand all
33 33
34 void FakeSyncService::RemoveObserver( 34 void FakeSyncService::RemoveObserver(
35 sync_driver::SyncServiceObserver* observer) { 35 sync_driver::SyncServiceObserver* observer) {
36 } 36 }
37 37
38 bool FakeSyncService::HasObserver( 38 bool FakeSyncService::HasObserver(
39 const sync_driver::SyncServiceObserver* observer) const { 39 const sync_driver::SyncServiceObserver* observer) const {
40 return false; 40 return false;
41 } 41 }
42 42
43 bool FakeSyncService::IsSyncEnabledAndLoggedIn() { 43 bool FakeSyncService::CanSyncStart() const {
44 return false; 44 return false;
45 } 45 }
46 46
47 void FakeSyncService::DisableForUser() { 47 void FakeSyncService::DisableForUser() {
48 } 48 }
49 49
50 void FakeSyncService::RequestStop() { 50 void FakeSyncService::RequestStop() {
51 } 51 }
52 52
53 void FakeSyncService::RequestStart() { 53 void FakeSyncService::RequestStart() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 bool FakeSyncService::IsPassphraseRequired() const { 117 bool FakeSyncService::IsPassphraseRequired() const {
118 return false; 118 return false;
119 } 119 }
120 120
121 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { 121 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
122 return syncer::ModelTypeSet(); 122 return syncer::ModelTypeSet();
123 } 123 }
124 124
125 } // namespace sync_driver 125 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/fake_sync_service.h ('k') | components/sync_driver/sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698