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

Side by Side Diff: chrome/browser/ui/webui/print_preview/printer_handler.cc

Issue 2604923002: Use TaskScheduler instead of WorkerPool in extension_printer_handler.cc. (Closed)
Patch Set: explicit Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/print_preview/extension_printer_handler_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/print_preview/printer_handler.h" 5 #include "chrome/browser/ui/webui/print_preview/printer_handler.h"
6 6
7 #include "base/threading/worker_pool.h"
8 #include "chrome/browser/ui/webui/print_preview/extension_printer_handler.h" 7 #include "chrome/browser/ui/webui/print_preview/extension_printer_handler.h"
9 8
10 // static 9 // static
11 std::unique_ptr<PrinterHandler> PrinterHandler::CreateForExtensionPrinters( 10 std::unique_ptr<PrinterHandler> PrinterHandler::CreateForExtensionPrinters(
12 content::BrowserContext* browser_context) { 11 content::BrowserContext* browser_context) {
13 return std::unique_ptr<ExtensionPrinterHandler>(new ExtensionPrinterHandler( 12 return std::unique_ptr<ExtensionPrinterHandler>(
14 browser_context, base::WorkerPool::GetTaskRunner(true))); 13 new ExtensionPrinterHandler(browser_context));
15 } 14 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/extension_printer_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698