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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 1155443009: [Sync] Rename SyncActive to IsSyncActive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More non-android cases. 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
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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ProfileOAuth2TokenService* oauth2_token_service, 268 ProfileOAuth2TokenService* oauth2_token_service,
269 browser_sync::ProfileSyncServiceStartBehavior start_behavior); 269 browser_sync::ProfileSyncServiceStartBehavior start_behavior);
270 ~ProfileSyncService() override; 270 ~ProfileSyncService() override;
271 271
272 // Initializes the object. This must be called at most once, and 272 // Initializes the object. This must be called at most once, and
273 // immediately after an object of this class is constructed. 273 // immediately after an object of this class is constructed.
274 void Initialize(); 274 void Initialize();
275 275
276 // sync_driver::SyncService implementation 276 // sync_driver::SyncService implementation
277 bool HasSyncSetupCompleted() const override; 277 bool HasSyncSetupCompleted() const override;
278 bool SyncActive() const override; 278 bool IsSyncActive() const override;
279 bool IsSyncEnabledAndLoggedIn() override; 279 bool IsSyncEnabledAndLoggedIn() override;
280 void DisableForUser() override; 280 void DisableForUser() override;
281 void StopAndSuppress() override; 281 void StopAndSuppress() override;
282 void UnsuppressAndStart() override; 282 void UnsuppressAndStart() override;
283 syncer::ModelTypeSet GetActiveDataTypes() const override; 283 syncer::ModelTypeSet GetActiveDataTypes() const override;
284 syncer::ModelTypeSet GetPreferredDataTypes() const override; 284 syncer::ModelTypeSet GetPreferredDataTypes() const override;
285 void OnUserChoseDatatypes(bool sync_everything, 285 void OnUserChoseDatatypes(bool sync_everything,
286 syncer::ModelTypeSet chosen_types) override; 286 syncer::ModelTypeSet chosen_types) override;
287 void SetSyncSetupCompleted() override; 287 void SetSyncSetupCompleted() override;
288 bool FirstSetupInProgress() const override; 288 bool FirstSetupInProgress() const override;
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; 1092 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_;
1093 1093
1094 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1094 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1095 }; 1095 };
1096 1096
1097 bool ShouldShowActionOnUI( 1097 bool ShouldShowActionOnUI(
1098 const syncer::SyncProtocolError& error); 1098 const syncer::SyncProtocolError& error);
1099 1099
1100 1100
1101 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1101 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698