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

Unified Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 61183003: Refactor SyncBackendHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove double virtual 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/test_profile_sync_service.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index 9d8818da4b39de78677c6b908e41f262201f4f7d..70ca26f32425f8eeddc067f632628029a3feb1f4 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/sync/glue/sync_backend_host.h"
+#include "chrome/browser/sync/glue/sync_backend_host_core.h"
Nicolas Zea 2013/11/06 18:03:21 is this necessary?
rlarocque 2013/11/06 21:48:47 Yeah, for DoInitializeOptions. This may be an arg
#include "chrome/browser/sync/profile_sync_components_factory.h"
#include "chrome/browser/sync/test/test_http_bridge_factory.h"
#include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_test.h"
@@ -30,7 +31,7 @@ SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
bool synchronous_init,
bool fail_initial_download,
syncer::StorageOption storage_option)
- : browser_sync::SyncBackendHost(
+ : browser_sync::SyncBackendHostImpl(
profile->GetDebugName(), profile, sync_prefs),
callback_(callback),
fail_initial_download_(fail_initial_download),
@@ -70,7 +71,7 @@ void SyncBackendHostForProfileSyncTest::InitCore(
options->internal_components_factory.reset(
new TestInternalComponentsFactory(factory_switches, storage));
- SyncBackendHost::InitCore(options.Pass());
+ SyncBackendHostImpl::InitCore(options.Pass());
if (synchronous_init_ && !base::MessageLoop::current()->is_running()) {
// The SyncBackend posts a task to the current loop when
// initialization completes.
@@ -130,7 +131,7 @@ SyncBackendHostForProfileSyncTest::HandleInitializationSuccessOnFrontendLoop(
if (synchronous_init_)
base::MessageLoop::current()->Quit();
} else {
- SyncBackendHost::HandleInitializationSuccessOnFrontendLoop(
+ SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop(
js_backend,
debug_info_listener);
}

Powered by Google App Engine
This is Rietveld 408576698