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

Side by Side Diff: components/browser_sync/browser/profile_sync_service.h

Issue 2078663002: [Sync] Deprecate old histograms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Leave old enum usage Created 4 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 | « no previous file | components/browser_sync/browser/profile_sync_service.cc » ('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 (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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); 672 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState);
673 673
674 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use 674 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use
675 // RequestStop for that. |data_fate| controls whether the local sync data is 675 // RequestStop for that. |data_fate| controls whether the local sync data is
676 // deleted or kept when the engine shuts down. 676 // deleted or kept when the engine shuts down.
677 void StopImpl(SyncStopDataFate data_fate); 677 void StopImpl(SyncStopDataFate data_fate);
678 678
679 // Update the last auth error and notify observers of error state. 679 // Update the last auth error and notify observers of error state.
680 void UpdateAuthErrorState(const GoogleServiceAuthError& error); 680 void UpdateAuthErrorState(const GoogleServiceAuthError& error);
681 681
682 // Detects and attempts to recover from a previous improper datatype
683 // configuration where Keep Everything Synced and the preferred types were
684 // not correctly set.
685 void TrySyncDatatypePrefRecovery();
686
687 // Puts the backend's sync scheduler into NORMAL mode. 682 // Puts the backend's sync scheduler into NORMAL mode.
688 // Called when configuration is complete. 683 // Called when configuration is complete.
689 void StartSyncingWithServer(); 684 void StartSyncingWithServer();
690 685
691 // Called when we've determined that we don't need a passphrase (either 686 // Called when we've determined that we don't need a passphrase (either
692 // because OnPassphraseAccepted() was called, or because we've gotten a 687 // because OnPassphraseAccepted() was called, or because we've gotten a
693 // OnPassphraseRequired() but no data types are enabled). 688 // OnPassphraseRequired() but no data types are enabled).
694 void ResolvePassphraseRequired(); 689 void ResolvePassphraseRequired();
695 690
696 // During initial signin, ProfileSyncService caches the user's signin 691 // During initial signin, ProfileSyncService caches the user's signin
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; 1015 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_;
1021 1016
1022 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1017 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1023 }; 1018 };
1024 1019
1025 bool ShouldShowActionOnUI( 1020 bool ShouldShowActionOnUI(
1026 const syncer::SyncProtocolError& error); 1021 const syncer::SyncProtocolError& error);
1027 1022
1028 1023
1029 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 1024 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/browser/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698