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

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

Issue 2939373003: Convert PpdCache and PpdProvider to TaskScheduler. (Closed)
Patch Set: remove extra imports 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') | chromeos/printing/ppd_cache.cc » ('J')
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..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
« no previous file with comments | « no previous file | chromeos/printing/ppd_cache.h » ('j') | chromeos/printing/ppd_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698