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

Side by Side Diff: chrome/service/cloud_print/printer_job_handler.cc

Issue 3117017: Remove deprecated wstring Get(As)String() methods from Value, etc. (Closed)
Patch Set: fix win Created 10 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 unified diff | Download patch
« no previous file with comments | « chrome/service/cloud_print/print_system_cups.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/cloud_print/printer_job_handler.h" 5 #include "chrome/service/cloud_print/printer_job_handler.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/md5.h" 9 #include "base/md5.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // go for free along with the capabilities) 147 // go for free along with the capabilities)
148 last_caps_hash_ = caps_hash; 148 last_caps_hash_ = caps_hash;
149 CloudPrintHelpers::AddMultipartValueForUpload( 149 CloudPrintHelpers::AddMultipartValueForUpload(
150 kPrinterCapsValue, printer_caps.printer_capabilities, 150 kPrinterCapsValue, printer_caps.printer_capabilities,
151 mime_boundary, printer_caps.caps_mime_type, &post_data); 151 mime_boundary, printer_caps.caps_mime_type, &post_data);
152 CloudPrintHelpers::AddMultipartValueForUpload( 152 CloudPrintHelpers::AddMultipartValueForUpload(
153 kPrinterDefaultsValue, printer_caps.printer_defaults, 153 kPrinterDefaultsValue, printer_caps.printer_defaults,
154 mime_boundary, printer_caps.defaults_mime_type, 154 mime_boundary, printer_caps.defaults_mime_type,
155 &post_data); 155 &post_data);
156 CloudPrintHelpers::AddMultipartValueForUpload( 156 CloudPrintHelpers::AddMultipartValueForUpload(
157 WideToUTF8(kPrinterCapsHashValue).c_str(), caps_hash, mime_boundary, 157 kPrinterCapsHashValue, caps_hash, mime_boundary, std::string(),
158 std::string(), &post_data); 158 &post_data);
159 } 159 }
160 } 160 }
161 if (printer_info.printer_name != printer_info_.printer_name) { 161 if (printer_info.printer_name != printer_info_.printer_name) {
162 CloudPrintHelpers::AddMultipartValueForUpload(kPrinterNameValue, 162 CloudPrintHelpers::AddMultipartValueForUpload(kPrinterNameValue,
163 printer_info.printer_name, 163 printer_info.printer_name,
164 mime_boundary, 164 mime_boundary,
165 std::string(), &post_data); 165 std::string(), &post_data);
166 } 166 }
167 if (printer_info.printer_description != printer_info_.printer_description) { 167 if (printer_info.printer_description != printer_info_.printer_description) {
168 CloudPrintHelpers::AddMultipartValueForUpload( 168 CloudPrintHelpers::AddMultipartValueForUpload(
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 621
622 void PrinterJobHandler::OnJobSpoolFailed() { 622 void PrinterJobHandler::OnJobSpoolFailed() {
623 DCHECK(MessageLoop::current() == print_thread_.message_loop()); 623 DCHECK(MessageLoop::current() == print_thread_.message_loop());
624 job_spooler_ = NULL; 624 job_spooler_ = NULL;
625 job_handler_message_loop_proxy_->PostTask(FROM_HERE, 625 job_handler_message_loop_proxy_->PostTask(FROM_HERE,
626 NewRunnableMethod(this, 626 NewRunnableMethod(this,
627 &PrinterJobHandler::JobFailed, 627 &PrinterJobHandler::JobFailed,
628 PRINT_FAILED)); 628 PRINT_FAILED));
629 } 629 }
630 630
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/print_system_cups.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698