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 d6e9a28c8d1e372ff12cc050c8f570d1aa2118c8..9a43f6a920fbb488039c72c2bdf9149afa78000f 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 NetworkResources; |
struct SyncCredentials; |
struct UserShare; |
} // namespace syncer |
@@ -699,6 +700,11 @@ class ProfileSyncService |
browser_sync::FaviconCache* GetFaviconCache(); |
+ // Overrides the NetworkResources used for Sync connections. |
+ // This function takes ownership of |network_resources|. |
+ void OverrideNetworkResourcesForTest( |
+ scoped_ptr<syncer::NetworkResources> network_resources); |
+ |
protected: |
// Used by test classes that derive from ProfileSyncService. |
virtual browser_sync::SyncBackendHost* GetBackendForTest(); |
@@ -1042,6 +1048,8 @@ class ProfileSyncService |
scoped_ptr<SessionsSyncManager> sessions_sync_manager_; |
+ scoped_ptr<syncer::NetworkResources> network_resources_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
}; |