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

Unified Diff: chrome/browser/ui/webui/print_preview/extension_printer_handler.cc

Issue 2931843003: Print Preview: Change getPrinterCapabilities to cr.sendWithPromise (Closed)
Patch Set: Address comments 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
Index: chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc b/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
index 2814faff606e9b5ae1e4fb64a6d361ffadc73143..2d32a54263bafede64863d56dde47ce510b05721 100644
--- a/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
@@ -173,7 +173,7 @@ void ExtensionPrinterHandler::StartGetCapability(
->DispatchGetCapabilityRequested(
destination_id,
base::Bind(&ExtensionPrinterHandler::WrapGetCapabilityCallback,
- weak_ptr_factory_.GetWeakPtr(), callback, destination_id));
+ weak_ptr_factory_.GetWeakPtr(), callback));
}
void ExtensionPrinterHandler::StartPrint(
@@ -300,9 +300,8 @@ void ExtensionPrinterHandler::WrapGetPrintersCallback(
void ExtensionPrinterHandler::WrapGetCapabilityCallback(
const PrinterHandler::GetCapabilityCallback& callback,
- const std::string& destination_id,
const base::DictionaryValue& capability) {
- callback.Run(destination_id, capability);
+ callback.Run(capability);
}
void ExtensionPrinterHandler::WrapPrintCallback(

Powered by Google App Engine
This is Rietveld 408576698