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

Unified Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 7042034: Print Preview: Remembering last used printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 0c3283c21c02e1d642664d09d9c404ba710fdef4..b69ace580e4da288163c1a6e8d64b5b1c370df70 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -80,8 +80,7 @@ class PrintPreviewHandler : public WebUIMessageHandler,
void SendDefaultPrinter(const StringValue& default_printer);
// Send the list of printers to the Web UI.
- void SendPrinterList(const ListValue& printers,
- const FundamentalValue& default_printer_index);
+ void SendPrinterList(const ListValue& printers);
// Helper function to get the initiator tab for the print preview tab.
TabContents* GetInitiatorTab();
@@ -102,6 +101,7 @@ class PrintPreviewHandler : public WebUIMessageHandler,
scoped_refptr<SelectFileDialog> select_file_dialog_;
static FilePath* last_saved_path_;
+ static std::string last_used_printer_;
// A count of how many requests received to regenerate preview data.
// Initialized to 0 then incremented and emitted to a histogram.

Powered by Google App Engine
This is Rietveld 408576698