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

Unified Diff: printing/backend/cups_helper.cc

Issue 10399050: Adding functionality to specify TLS encryption CUPS print servers for cloudprint connector. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: printing/backend/cups_helper.cc
===================================================================
--- printing/backend/cups_helper.cc (revision 137176)
+++ printing/backend/cups_helper.cc (working copy)
@@ -14,7 +14,8 @@
// Helper wrapper around http_t structure, with connection and cleanup
// functionality.
-HttpConnectionCUPS::HttpConnectionCUPS(const GURL& print_server_url)
+HttpConnectionCUPS::HttpConnectionCUPS(const GURL& print_server_url,
+ http_encryption_t encryption)
: http_(NULL) {
// If we have an empty url, use default print server.
if (print_server_url.is_empty())
@@ -25,7 +26,7 @@
port = kDefaultIPPServerPort;
http_ = httpConnectEncrypt(print_server_url.host().c_str(), port,
- HTTP_ENCRYPT_NEVER);
+ encryption);
if (http_ == NULL) {
LOG(ERROR) << "CP_CUPS: Failed connecting to print server: " <<
print_server_url;

Powered by Google App Engine
This is Rietveld 408576698