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

Unified Diff: printing/printing_context.cc

Issue 484373002: Fixed return value in PrintingContext::OnError(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index bcafb40ad82a37eaa2b73683f26f607751277075..c7f22a5003d30292edc910e508f677cd00c8e122 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -44,8 +44,9 @@ void PrintingContext::ResetSettings() {
}
PrintingContext::Result PrintingContext::OnError() {
+ Result result = abort_printing_ ? CANCEL : FAILED;
ResetSettings();
- return abort_printing_ ? CANCEL : FAILED;
+ return result;
}
PrintingContext::Result PrintingContext::UsePdfSettings() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698