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

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: nit 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
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..02324691c708e85f692658e791b27467d2424527 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.
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698