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

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

Issue 11347054: [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
651 // Starts up sync if it is not suppressed and preconditions are met. 656 // Starts up sync if it is not suppressed and preconditions are met.
652 // Called from Initialize() and UnsuppressAndStart(). 657 // Called from Initialize() and UnsuppressAndStart().
653 void TryStart(); 658 void TryStart();
654 659
655 // Puts the backend's sync scheduler into NORMAL mode. 660 // Puts the backend's sync scheduler into NORMAL mode.
656 // Called when configuration is complete. 661 // Called when configuration is complete.
657 void StartSyncingWithServer(); 662 void StartSyncingWithServer();
658 663
659 // Called when we've determined that we don't need a passphrase (either 664 // Called when we've determined that we don't need a passphrase (either
660 // because OnPassphraseAccepted() was called, or because we've gotten a 665 // because OnPassphraseAccepted() was called, or because we've gotten a
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_; 872 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_;
868 873
869 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 874 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
870 }; 875 };
871 876
872 bool ShouldShowActionOnUI( 877 bool ShouldShowActionOnUI(
873 const syncer::SyncProtocolError& error); 878 const syncer::SyncProtocolError& error);
874 879
875 880
876 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 881 #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