| Index: chrome/browser/chromeos/printing/ppd_provider_factory.cc
|
| diff --git a/chrome/browser/chromeos/printing/ppd_provider_factory.cc b/chrome/browser/chromeos/printing/ppd_provider_factory.cc
|
| index 4c06d9a7f3e72ecc17b9d737d103dbe18297a65e..313de15850e36085390aeb2ae5926d8937e37439 100644
|
| --- a/chrome/browser/chromeos/printing/ppd_provider_factory.cc
|
| +++ b/chrome/browser/chromeos/printing/ppd_provider_factory.cc
|
| @@ -18,15 +18,18 @@
|
| namespace chromeos {
|
| namespace printing {
|
|
|
| -std::unique_ptr<PpdProvider> CreateProvider(Profile* profile) {
|
| +scoped_refptr<PpdProvider> CreateProvider(Profile* profile) {
|
| base::FilePath ppd_cache_path =
|
| profile->GetPath().Append(FILE_PATH_LITERAL("PPDCache"));
|
|
|
| - return PpdProvider::Create(google_apis::GetAPIKey(),
|
| + auto cache = PpdCache::Create(ppd_cache_path,
|
| + content::BrowserThread::GetTaskRunnerForThread(
|
| + content::BrowserThread::CACHE)
|
| + .get());
|
| +
|
| + return PpdProvider::Create(g_browser_process->GetApplicationLocale(),
|
| g_browser_process->system_request_context(),
|
| - content::BrowserThread::GetTaskRunnerForThread(
|
| - content::BrowserThread::FILE),
|
| - PpdCache::Create(ppd_cache_path));
|
| + cache);
|
| }
|
|
|
| } // namespace printing
|
|
|