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

Unified Diff: chrome/service/cloud_print/cloud_print_helpers.cc

Issue 5736004: Added 'dry run' tag to the print job, to test proxy health without wasting pa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/service/cloud_print/cloud_print_helpers.cc
===================================================================
--- chrome/service/cloud_print/cloud_print_helpers.cc (revision 68909)
+++ chrome/service/cloud_print/cloud_print_helpers.cc (working copy)
@@ -231,3 +231,11 @@
std::string(), post_data);
}
+bool CloudPrintHelpers::IsDryRunJob(const std::vector<std::string>& tags) {
+ std::vector<std::string>::const_iterator it;
+ for (it = tags.begin(); it != tags.end(); ++it) {
+ if (*it == kTagDryRunFlag)
+ return true;
+ }
+ return false;
+}
« no previous file with comments | « chrome/service/cloud_print/cloud_print_helpers.h ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698