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

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

Issue 98323003: Revert 238348 "Clean up TestProfileSyncService and related tests" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | trunk/src/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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 // still in deferred start mode, meaning the SyncableService hasn't been 693 // still in deferred start mode, meaning the SyncableService hasn't been
694 // told to MergeDataAndStartSyncing yet. 694 // told to MergeDataAndStartSyncing yet.
695 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); 695 void OnDataTypeRequestsSyncStartup(syncer::ModelType type);
696 696
697 // Return sync token status. 697 // Return sync token status.
698 SyncTokenStatus GetSyncTokenStatus() const; 698 SyncTokenStatus GetSyncTokenStatus() const;
699 699
700 browser_sync::FaviconCache* GetFaviconCache(); 700 browser_sync::FaviconCache* GetFaviconCache();
701 701
702 protected: 702 protected:
703 // Used by test classes that derive from ProfileSyncService.
704 virtual browser_sync::SyncBackendHost* GetBackendForTest();
705
703 // Helper to configure the priority data types. 706 // Helper to configure the priority data types.
704 void ConfigurePriorityDataTypes(); 707 void ConfigurePriorityDataTypes();
705 708
706 // Helper to install and configure a data type manager. 709 // Helper to install and configure a data type manager.
707 void ConfigureDataTypeManager(); 710 void ConfigureDataTypeManager();
708 711
709 // Shuts down the backend sync components. 712 // Shuts down the backend sync components.
710 // |option| indicates if syncing is being disabled or not, and whether 713 // |option| indicates if syncing is being disabled or not, and whether
711 // to claim ownership of sync thread from backend. 714 // to claim ownership of sync thread from backend.
712 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); 715 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 scoped_ptr<SessionsSyncManager> sessions_sync_manager_; 1041 scoped_ptr<SessionsSyncManager> sessions_sync_manager_;
1039 1042
1040 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1043 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1041 }; 1044 };
1042 1045
1043 bool ShouldShowActionOnUI( 1046 bool ShouldShowActionOnUI(
1044 const syncer::SyncProtocolError& error); 1047 const syncer::SyncProtocolError& error);
1045 1048
1046 1049
1047 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1050 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698