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

Unified Diff: chrome/browser/chromeos/printing/ppd_provider_factory.cc

Issue 2939373003: Convert PpdCache and PpdProvider to TaskScheduler. (Closed)
Patch Set: find can skip dir creation Created 3 years, 6 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
« no previous file with comments | « no previous file | chromeos/printing/ppd_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3d85d99585487c25d69f054f15d0669c73472fb2 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,9 @@ 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());
-
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(),
+ PpdCache::Create(ppd_cache_path));
}
} // namespace printing
« no previous file with comments | « no previous file | chromeos/printing/ppd_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698