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

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: Created 7 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
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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 // Called when a datatype (SyncableService) has a need for sync to start 669 // Called when a datatype (SyncableService) has a need for sync to start
670 // ASAP, presumably because a local change event has occurred but we're 670 // ASAP, presumably because a local change event has occurred but we're
671 // still in deferred start mode, meaning the SyncableService hasn't been 671 // still in deferred start mode, meaning the SyncableService hasn't been
672 // told to MergeDataAndStartSyncing yet. 672 // told to MergeDataAndStartSyncing yet.
673 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); 673 void OnDataTypeRequestsSyncStartup(syncer::ModelType type);
674 674
675 // Return sync token status. 675 // Return sync token status.
676 SyncTokenStatus GetSyncTokenStatus() const; 676 SyncTokenStatus GetSyncTokenStatus() const;
677 677
678 protected: 678 protected:
679 // Used by test classes that derive from ProfileSyncService.
680 virtual browser_sync::SyncBackendHost* GetBackendForTest();
681
682 // Helper to configure the priority data types. 679 // Helper to configure the priority data types.
683 void ConfigurePriorityDataTypes(); 680 void ConfigurePriorityDataTypes();
684 681
685 // Helper to install and configure a data type manager. 682 // Helper to install and configure a data type manager.
686 void ConfigureDataTypeManager(); 683 void ConfigureDataTypeManager();
687 684
688 // Shuts down the backend sync components. 685 // Shuts down the backend sync components.
689 // |option| indicates if syncing is being disabled or not, and whether 686 // |option| indicates if syncing is being disabled or not, and whether
690 // to claim ownership of sync thread from backend. 687 // to claim ownership of sync thread from backend.
691 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); 688 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 base::Time next_token_request_time_; 1012 base::Time next_token_request_time_;
1016 1013
1017 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1014 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1018 }; 1015 };
1019 1016
1020 bool ShouldShowActionOnUI( 1017 bool ShouldShowActionOnUI(
1021 const syncer::SyncProtocolError& error); 1018 const syncer::SyncProtocolError& error);
1022 1019
1023 1020
1024 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1021 #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') | chrome/browser/sync/profile_sync_service_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698