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

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

Issue 67683005: Clean up TestProfileSyncService and related tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | 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
706 // Helper to configure the priority data types. 703 // Helper to configure the priority data types.
707 void ConfigurePriorityDataTypes(); 704 void ConfigurePriorityDataTypes();
708 705
709 // Helper to install and configure a data type manager. 706 // Helper to install and configure a data type manager.
710 void ConfigureDataTypeManager(); 707 void ConfigureDataTypeManager();
711 708
712 // Shuts down the backend sync components. 709 // Shuts down the backend sync components.
713 // |option| indicates if syncing is being disabled or not, and whether 710 // |option| indicates if syncing is being disabled or not, and whether
714 // to claim ownership of sync thread from backend. 711 // to claim ownership of sync thread from backend.
715 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); 712 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 scoped_ptr<SessionsSyncManager> sessions_sync_manager_; 1038 scoped_ptr<SessionsSyncManager> sessions_sync_manager_;
1042 1039
1043 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1040 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1044 }; 1041 };
1045 1042
1046 bool ShouldShowActionOnUI( 1043 bool ShouldShowActionOnUI(
1047 const syncer::SyncProtocolError& error); 1044 const syncer::SyncProtocolError& error);
1048 1045
1049 1046
1050 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1047 #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