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

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

Issue 2459943002: Use printer id to populate CUPS instead of printer name. (Closed)
Patch Set: proof Created 4 years, 2 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/chromeos/printing/printer_pref_manager.cc
diff --git a/chrome/browser/chromeos/printing/printer_pref_manager.cc b/chrome/browser/chromeos/printing/printer_pref_manager.cc
index 00a63f127fa198d74f351cb2b994ffd3d0bfb53e..8df6fdcfa71ace2f5cc55941f96382b14cad7613 100644
--- a/chrome/browser/chromeos/printing/printer_pref_manager.cc
+++ b/chrome/browser/chromeos/printing/printer_pref_manager.cc
@@ -100,7 +100,7 @@ void PrinterPrefManager::RegisterPrinter(std::unique_ptr<Printer> printer) {
printer->set_id(base::GenerateGUID());
std::unique_ptr<base::DictionaryValue> updated_printer =
- printing::PrinterToPref(*(printer.get()));
+ printing::PrinterToPref(*printer);
UpdatePrinterPref(profile_, printer->id(), std::move(updated_printer));
}

Powered by Google App Engine
This is Rietveld 408576698