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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_apitest.cc

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 3 months 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/extensions/api/sessions/sessions_apitest.cc
diff --git a/chrome/browser/extensions/api/sessions/sessions_apitest.cc b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
index 250b237d9a4200227ee8c70618133d246e053292..5cc1b9230d6f6d0b2b33a9a2048db0a9a1a91eb9 100644
--- a/chrome/browser/extensions/api/sessions/sessions_apitest.cc
+++ b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
@@ -192,9 +192,11 @@ std::unique_ptr<KeyedService> ExtensionSessionsTest::BuildProfileSyncService(
sync_pb::SyncEnums_DeviceType_TYPE_LINUX, "device_id")));
Profile* profile = static_cast<Profile*>(context);
- ProfileSyncServiceMock* sync_service =
- new ProfileSyncServiceMock(CreateProfileSyncServiceParamsForTest(
- base::MakeUnique<browser_sync::ChromeSyncClient>(profile), profile));
+ browser_sync::ProfileSyncServiceMock* sync_service =
+ new browser_sync::ProfileSyncServiceMock(
+ CreateProfileSyncServiceParamsForTest(
+ base::MakeUnique<browser_sync::ChromeSyncClient>(profile),
+ profile));
static_cast<browser_sync::ChromeSyncClient*>(sync_service->GetSyncClient())
->SetSyncApiComponentFactoryForTesting(std::move(factory));
return base::WrapUnique(sync_service);
@@ -210,9 +212,10 @@ void ExtensionSessionsTest::CreateTestProfileSyncService() {
Profile* profile =
Profile::CreateProfile(path, NULL, Profile::CREATE_MODE_SYNCHRONOUS);
profile_manager->RegisterTestingProfile(profile, true, false);
- ProfileSyncServiceMock* service = static_cast<ProfileSyncServiceMock*>(
- ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(
- profile, &ExtensionSessionsTest::BuildProfileSyncService));
+ browser_sync::ProfileSyncServiceMock* service =
+ static_cast<browser_sync::ProfileSyncServiceMock*>(
+ ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(
+ profile, &ExtensionSessionsTest::BuildProfileSyncService));
syncer::ModelTypeSet preferred_types;
preferred_types.Put(syncer::SESSIONS);

Powered by Google App Engine
This is Rietveld 408576698