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 644ddc1325274ef0b64e6a537532592cfc098866..556ac2118f08fbd776601da45030fd3db9afbdae 100644 |
--- a/chrome/browser/chromeos/printing/ppd_provider_factory.cc |
+++ b/chrome/browser/chromeos/printing/ppd_provider_factory.cc |
@@ -11,7 +11,6 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chromeos/printing/ppd_cache.h" |
#include "chromeos/printing/ppd_provider.h" |
-#include "content/public/browser/browser_thread.h" |
#include "google_apis/google_api_keys.h" |
#include "net/url_request/url_request_context_getter.h" |
@@ -22,16 +21,11 @@ scoped_refptr<PpdProvider> CreateProvider(Profile* profile) { |
base::FilePath ppd_cache_path = |
profile->GetPath().Append(FILE_PATH_LITERAL("PPDCache")); |
- auto cache = PpdCache::Create(ppd_cache_path, |
- content::BrowserThread::GetTaskRunnerForThread( |
- content::BrowserThread::CACHE) |
- .get()); |
+ auto cache = PpdCache::Create(ppd_cache_path); |
return PpdProvider::Create(g_browser_process->GetApplicationLocale(), |
- g_browser_process->system_request_context(), cache, |
- content::BrowserThread::GetTaskRunnerForThread( |
- content::BrowserThread::FILE) |
- .get()); |
+ g_browser_process->system_request_context(), |
+ cache); |
gab
2017/06/19 15:13:21
inline |cache| here? (or at least std::move() it)
skau
2017/06/19 23:31:08
Done.
|
} |
} // namespace printing |