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

Unified Diff: chrome/renderer/mock_printer.cc

Issue 7747033: Merge 97702, 97820, 97976 (Closed) Base URL: svn://chrome-svn/chrome/branches/835/src/
Patch Set: Created 9 years, 4 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/common/print_messages.h ('k') | chrome/renderer/mock_render_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_printer.cc
===================================================================
--- chrome/renderer/mock_printer.cc (revision 98330)
+++ chrome/renderer/mock_printer.cc (working copy)
@@ -60,7 +60,7 @@
// Assign a unit document cookie and set the print settings.
document_cookie_ = CreateDocumentCookie();
- memset(params, 0, sizeof(PrintMsg_Print_Params));
+ params->Reset();
SetPrintParams(params);
}
@@ -83,7 +83,7 @@
// Verify the input parameters.
EXPECT_EQ(document_cookie_, cookie);
- memset(settings, 0, sizeof(PrintMsg_PrintPages_Params));
+ params->Reset();
settings->params.dpi = dpi_;
settings->params.max_shrink = max_shrink_;
settings->params.min_shrink = min_shrink_;
@@ -101,7 +101,7 @@
PrintMsg_PrintPages_Params* params) {
EXPECT_EQ(document_cookie_, cookie);
- memset(params, 0, sizeof(PrintMsg_PrintPages_Params));
+ params->Reset();
SetPrintParams(&(params->params));
printer_status_ = PRINTER_PRINTING;
}
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698