| Index: chrome/browser/chromeos/printing/printers_manager_factory.cc
|
| diff --git a/chrome/browser/chromeos/printing/printers_manager_factory.cc b/chrome/browser/chromeos/printing/printers_manager_factory.cc
|
| index ca2162fe7351ff76339d42f845ba8806d2ebc60f..e3bcf4cb667286bf60ed63d77bd68139665ed8c4 100644
|
| --- a/chrome/browser/chromeos/printing/printers_manager_factory.cc
|
| +++ b/chrome/browser/chromeos/printing/printers_manager_factory.cc
|
| @@ -16,6 +16,7 @@
|
| #include "components/browser_sync/profile_sync_service.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| #include "content/public/browser/browser_context.h"
|
| +#include "content/public/browser/browser_thread.h"
|
|
|
| namespace chromeos {
|
|
|
| @@ -54,17 +55,10 @@ PrintersManager* PrintersManagerFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* browser_context) const {
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
|
|
| - browser_sync::ProfileSyncService* sync_service =
|
| - ProfileSyncServiceFactory::GetForProfile(profile);
|
| -
|
| - // TODO(skym): After crbug.com/688533 is fixed, this should not use
|
| - // CreateInMemoryStoreForTest, but rather a ModelTypeStore creation mechanism
|
| - // that's agnostic to the existence of sync infrastructure.
|
| const syncer::ModelTypeStoreFactory& store_factory =
|
| - sync_service ? sync_service->GetModelTypeStoreFactory(syncer::PRINTERS)
|
| - : base::BindRepeating(
|
| - syncer::ModelTypeStore::CreateInMemoryStoreForTest,
|
| - syncer::PRINTERS);
|
| + browser_sync::ProfileSyncService::GetModelTypeStoreFactory(
|
| + syncer::PRINTERS, profile->GetPath(),
|
| + content::BrowserThread::GetBlockingPool());
|
|
|
| std::unique_ptr<PrintersSyncBridge> sync_bridge =
|
| base::MakeUnique<PrintersSyncBridge>(
|
|
|