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

Unified Diff: ios/chrome/browser/sync/sync_setup_service.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync_sessions/tab_node_pool.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/sync/sync_setup_service.h
diff --git a/ios/chrome/browser/sync/sync_setup_service.h b/ios/chrome/browser/sync/sync_setup_service.h
index d18145b967a1644a1979568a76d1fd98ac906923..a8d14064a1ce20339daf9acf4960628f576ea698 100644
--- a/ios/chrome/browser/sync/sync_setup_service.h
+++ b/ios/chrome/browser/sync/sync_setup_service.h
@@ -26,7 +26,7 @@ class SyncSetupInProgressHandle;
// to allow the complex sync setup flow on iOS.
class SyncSetupService : public KeyedService {
public:
- typedef enum {
+ using SyncServiceState = enum {
kNoSyncServiceError,
kSyncServiceSignInNeedsUpdate,
kSyncServiceCouldNotConnect,
@@ -34,10 +34,10 @@ class SyncSetupService : public KeyedService {
kSyncServiceNeedsPassphrase,
kSyncServiceUnrecoverableError,
kLastSyncServiceError = kSyncServiceUnrecoverableError
- } SyncServiceState;
+ };
// The set of user-selectable datatypes handled by Chrome for iOS.
- typedef enum {
+ using SyncableDatatype = enum {
kSyncBookmarks,
kSyncOmniboxHistory,
kSyncPasswords,
@@ -46,7 +46,7 @@ class SyncSetupService : public KeyedService {
kSyncPreferences,
kSyncReadingList,
kNumberOfSyncableDatatypes
- } SyncableDatatype;
+ };
SyncSetupService(syncer::SyncService* sync_service, PrefService* prefs);
~SyncSetupService() override;
« no previous file with comments | « components/sync_sessions/tab_node_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698