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

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

Issue 147953009: Fallback to CDD/CJT if connector can't initialize XPS API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/cloud_print/cloud_print_helpers.h ('k') | chrome/service/cloud_print/cdd_conversion_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/cloud_print/cloud_print_helpers.cc
diff --git a/chrome/common/cloud_print/cloud_print_helpers.cc b/chrome/common/cloud_print/cloud_print_helpers.cc
index 41838e11b8347aa58b1e77adb2677d6d86cab1d4..2681c505786946c594c4e3ac22cd4162ddfba425 100644
--- a/chrome/common/cloud_print/cloud_print_helpers.cc
+++ b/chrome/common/cloud_print/cloud_print_helpers.cc
@@ -123,6 +123,17 @@ GURL GetUrlForJobFetch(const GURL& cloud_print_server_url,
return cloud_print_server_url.ReplaceComponents(replacements);
}
+GURL GetUrlForJobCjt(const GURL& cloud_print_server_url,
+ const std::string& job_id,
+ const std::string& reason) {
+ std::string path(AppendPathToUrl(cloud_print_server_url, "ticket"));
+ GURL::Replacements replacements;
+ replacements.SetPathStr(path);
+ std::string query = base::StringPrintf(
+ "jobid=%s&deb=%s&use_cjt=true", job_id.c_str(), reason.c_str());
+ replacements.SetQueryStr(query);
+ return cloud_print_server_url.ReplaceComponents(replacements);
+}
GURL GetUrlForJobDelete(const GURL& cloud_print_server_url,
const std::string& job_id) {
« no previous file with comments | « chrome/common/cloud_print/cloud_print_helpers.h ('k') | chrome/service/cloud_print/cdd_conversion_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698