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

Unified Diff: printing/backend/print_backend_cups.cc

Issue 7087011: Printing: Add ability to get the default printer from the print backend. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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: printing/backend/print_backend_cups.cc
===================================================================
--- printing/backend/print_backend_cups.cc (revision 87114)
+++ printing/backend/print_backend_cups.cc (working copy)
@@ -86,6 +86,8 @@
// PrintBackend implementation.
virtual bool EnumeratePrinters(PrinterList* printer_list);
+ virtual std::string GetDefaultPrinterName();
+
virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name,
PrinterCapsAndDefaults* printer_info);
@@ -153,6 +155,13 @@
return true;
}
+std::string PrintBackendCUPS::GetDefaultPrinterName() {
+ // TODO(thestig) Figure out why cupsGetDefault() lies about the default
+ // printer. :-(
+ // Return an empty string for now.
+ return std::string();
+}
+
bool PrintBackendCUPS::GetPrinterCapsAndDefaults(
const std::string& printer_name,
PrinterCapsAndDefaults* printer_info) {

Powered by Google App Engine
This is Rietveld 408576698