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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 73723006: Allow customization of HttpPostProviderFactory via ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index c9bfd849a958ef2160cc49c1be7d777f78ae8bb7..4e9c32440eaf9d8cba714a381707ab37141708bc 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -71,6 +71,7 @@ class SyncSessionSnapshot;
namespace syncer {
class BaseTransaction;
+class HttpPostProviderFactoryFactory;
struct SyncCredentials;
struct UserShare;
} // namespace syncer
@@ -699,6 +700,11 @@ class ProfileSyncService
browser_sync::FaviconCache* GetFaviconCache();
+ // Overrides the HttpPostProviderFactoryFactory used for Sync connections.
+ void OverrideHttpPostProviderFactoryFactoryForTest(
+ syncer::HttpPostProviderFactoryFactory*
+ http_post_provider_factory_factory);
+
protected:
// Used by test classes that derive from ProfileSyncService.
virtual browser_sync::SyncBackendHost* GetBackendForTest();
@@ -1040,6 +1046,8 @@ class ProfileSyncService
scoped_ptr<SessionsSyncManager> sessions_sync_manager_;
+ syncer::HttpPostProviderFactoryFactory* http_post_provider_factory_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
};

Powered by Google App Engine
This is Rietveld 408576698