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

Side by Side Diff: chrome/browser/chromeos/printing/ppd_provider_factory.cc

Issue 2542363002: Interrogate PpdProvider from PrintPreview. (Closed)
Patch Set: address comment from dpapad@ Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/printing/ppd_provider_factory.h"
6
7 #include <memory>
8
9 #include "base/files/file_path.h"
10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/profiles/profile.h"
12 #include "chromeos/printing/ppd_cache.h"
13 #include "chromeos/printing/ppd_provider.h"
14 #include "content/public/browser/browser_thread.h"
15 #include "google_apis/google_api_keys.h"
16 #include "net/url_request/url_request_context_getter.h"
17
18 namespace chromeos {
19 namespace printing {
20
21 std::unique_ptr<PpdProvider> CreateProvider(Profile* profile) {
22 base::FilePath ppd_cache_path =
23 profile->GetPath().Append(FILE_PATH_LITERAL("PPDCache"));
24
25 return PpdProvider::Create(google_apis::GetAPIKey(),
26 g_browser_process->system_request_context(),
27 content::BrowserThread::GetTaskRunnerForThread(
28 content::BrowserThread::FILE),
29 PpdCache::Create(ppd_cache_path));
30 }
31
32 } // namespace printing
33 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/printing/ppd_provider_factory.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698