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

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

Issue 1024553010: [Sync] Add support for immediately enabling wallet datatype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 5 years, 9 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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 void NotifySyncCycleCompleted(); 909 void NotifySyncCycleCompleted();
910 910
911 void ClearStaleErrors(); 911 void ClearStaleErrors();
912 912
913 void ClearUnrecoverableError(); 913 void ClearUnrecoverableError();
914 914
915 // Starts up the backend sync components. |mode| specifies the kind of 915 // Starts up the backend sync components. |mode| specifies the kind of
916 // backend to start, one of SYNC, BACKUP or ROLLBACK. 916 // backend to start, one of SYNC, BACKUP or ROLLBACK.
917 virtual void StartUpSlowBackendComponents(BackendMode mode); 917 virtual void StartUpSlowBackendComponents(BackendMode mode);
918 918
919 // About-flags experiment names for datatypes that aren't enabled by default
920 // yet.
921 static std::string GetExperimentNameForDataType(
922 syncer::ModelType data_type);
923
924 // Create and register a new datatype controller.
925 void RegisterNewDataType(syncer::ModelType data_type);
926
927 // Collects preferred sync data types from |preference_providers_|. 919 // Collects preferred sync data types from |preference_providers_|.
928 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const; 920 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const;
929 921
930 // Called when the user changes the sync configuration, to update the UMA 922 // Called when the user changes the sync configuration, to update the UMA
931 // stats. 923 // stats.
932 void UpdateSelectedTypesHistogram( 924 void UpdateSelectedTypesHistogram(
933 bool sync_everything, 925 bool sync_everything,
934 const syncer::ModelTypeSet chosen_types) const; 926 const syncer::ModelTypeSet chosen_types) const;
935 927
936 #if defined(OS_CHROMEOS) 928 #if defined(OS_CHROMEOS)
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; 1162 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_;
1171 1163
1172 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1164 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1173 }; 1165 };
1174 1166
1175 bool ShouldShowActionOnUI( 1167 bool ShouldShowActionOnUI(
1176 const syncer::SyncProtocolError& error); 1168 const syncer::SyncProtocolError& error);
1177 1169
1178 1170
1179 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1171 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698