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

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

Issue 11364024: Revert 165326 - [Sync] Unrevert fix for bug 154940 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync/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 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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 ERROR_REASON_CONFIGURATION_RETRY, 641 ERROR_REASON_CONFIGURATION_RETRY,
642 ERROR_REASON_CONFIGURATION_FAILURE, 642 ERROR_REASON_CONFIGURATION_FAILURE,
643 ERROR_REASON_ACTIONABLE_ERROR, 643 ERROR_REASON_ACTIONABLE_ERROR,
644 ERROR_REASON_LIMIT 644 ERROR_REASON_LIMIT
645 }; 645 };
646 friend class ProfileSyncServicePasswordTest; 646 friend class ProfileSyncServicePasswordTest;
647 friend class SyncTest; 647 friend class SyncTest;
648 friend class TestProfileSyncService; 648 friend class TestProfileSyncService;
649 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); 649 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState);
650 650
651 // Detects and attempts to recover from a previous improper datatype
652 // configuration where Keep Everything Synced and the preferred types were
653 // not correctly set.
654 void TrySyncDatatypePrefRecovery();
655
656 // Starts up sync if it is not suppressed and preconditions are met. 651 // Starts up sync if it is not suppressed and preconditions are met.
657 // Called from Initialize() and UnsuppressAndStart(). 652 // Called from Initialize() and UnsuppressAndStart().
658 void TryStart(); 653 void TryStart();
659 654
660 // Puts the backend's sync scheduler into NORMAL mode. 655 // Puts the backend's sync scheduler into NORMAL mode.
661 // Called when configuration is complete. 656 // Called when configuration is complete.
662 void StartSyncingWithServer(); 657 void StartSyncingWithServer();
663 658
664 // Called when we've determined that we don't need a passphrase (either 659 // Called when we've determined that we don't need a passphrase (either
665 // because OnPassphraseAccepted() was called, or because we've gotten a 660 // because OnPassphraseAccepted() was called, or because we've gotten a
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_; 867 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_;
873 868
874 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 869 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
875 }; 870 };
876 871
877 bool ShouldShowActionOnUI( 872 bool ShouldShowActionOnUI(
878 const syncer::SyncProtocolError& error); 873 const syncer::SyncProtocolError& error);
879 874
880 875
881 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 876 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698