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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.cc

Issue 208583007: Tunnel the CDD from the Print Preview javascript to the privet operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/local_discovery/privet_http_impl.cc
diff --git a/chrome/browser/local_discovery/privet_http_impl.cc b/chrome/browser/local_discovery/privet_http_impl.cc
index 6d2b9998be7476f1f6b2328755112be97dc02cd5..bb28118eb7a9db217877a1d1498397ce8f3f2755 100644
--- a/chrome/browser/local_discovery/privet_http_impl.cc
+++ b/chrome/browser/local_discovery/privet_http_impl.cc
@@ -545,7 +545,7 @@ void PrivetLocalPrintOperationImpl::DoCreatejob() {
url_fetcher_= privet_client_->CreateURLFetcher(
CreatePrivetURL(kPrivetCreatejobPath), net::URLFetcher::POST, this);
- url_fetcher_->SetUploadData(kPrivetContentTypeCJT, ticket_);
+ url_fetcher_->SetUploadData(kPrivetContentTypeCJT, ticket_.ToString());
url_fetcher_->Start();
}
@@ -606,7 +606,7 @@ void PrivetLocalPrintOperationImpl::DoSubmitdoc() {
}
void PrivetLocalPrintOperationImpl::StartPrinting() {
- if (has_extended_workflow_ && !ticket_.empty() && jobid_.empty()) {
+ if (has_extended_workflow_ && jobid_.empty()) {
DoCreatejob();
} else {
DoSubmitdoc();
@@ -762,7 +762,13 @@ void PrivetLocalPrintOperationImpl::SetData(base::RefCountedBytes* data) {
void PrivetLocalPrintOperationImpl::SetTicket(const std::string& ticket) {
DCHECK(!started_);
- ticket_ = ticket;
+ ticket_.InitFromString(ticket);
+}
+
+void PrivetLocalPrintOperationImpl::SetCapabilities(
+ const std::string& capabilities) {
+ DCHECK(!started_);
+ capabilities_.InitFromString(capabilities);
}
void PrivetLocalPrintOperationImpl::SetUsername(const std::string& user) {

Powered by Google App Engine
This is Rietveld 408576698