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

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

Issue 10909124: Improves application state persistance. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updates unit tests. Created 8 years, 3 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/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index 189aee9db3787706a4a1969e7ee80128b873f113..7800a7b1c93230439bba879409c21bc021e5601b 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -77,14 +77,6 @@ class PrintPreviewHandler : public content::WebUIMessageHandler,
// TODO(abodenha@chromium.org) See http://crbug.com/136843
// PrintSystemTaskProxy should not need to be a friend.
friend class PrintSystemTaskProxy;
- FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);
- FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault);
- FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
- StickyMarginsCustomThenDefault);
- FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
- GetLastUsedMarginSettingsCustom);
- FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
- GetLastUsedMarginSettingsDefault);
TabContents* preview_tab_contents() const;
content::WebContents* preview_web_contents() const;
@@ -110,11 +102,9 @@ class PrintPreviewHandler : public content::WebUIMessageHandler,
// Handles the request to cancel the pending print request. |args| is unused.
void HandleCancelPendingPrintRequest(const base::ListValue* args);
- // Handles a request to back up data about the last used cloud print
- // printer.
- // First element of |args| is the printer name.
- // Second element of |args| is the current cloud print data JSON.
- void HandleSaveLastPrinter(const base::ListValue* args);
+ // Handles a request to store data that the web ui wishes to persist.
+ // First element of |args| is the data to persist.
+ void HandleSaveAppState(const base::ListValue* args);
// Gets the printer capabilities. First element of |args| is the printer name.
void HandleGetPrinterCapabilities(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698