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

Unified Diff: chrome/service/cloud_print/cloud_print_proxy_backend.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/cloud_print/cloud_print_consts.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy_backend.cc
diff --git a/chrome/service/cloud_print/cloud_print_proxy_backend.cc b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
index 257371d6bbfb3d498d64ebce71a699f04ba27ef6..07c40bc14d035bc112081bddbed2d692775f10d4 100644
--- a/chrome/service/cloud_print/cloud_print_proxy_backend.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
@@ -441,7 +441,7 @@ void CloudPrintProxyBackend::Core::RegisterNextPrinter() {
// Send a hash of the printer capabilities to the server. We will use this
// later to check if the capabilities have changed
CloudPrintHelpers::AddMultipartValueForUpload(
- WideToUTF8(kPrinterCapsHashValue).c_str(),
+ kPrinterCapsHashValue,
MD5String(last_uploaded_printer_info_.printer_capabilities),
mime_boundary, std::string(), &post_data);
// Terminate the request body
@@ -557,9 +557,9 @@ void CloudPrintProxyBackend::Core::InitJobHandlerForPrinter(
cloud_print::PrinterBasicInfo printer_info;
printer_data->GetString(kNameValue, &printer_info.printer_name);
DCHECK(!printer_info.printer_name.empty());
- printer_data->GetString(UTF8ToWide(kPrinterDescValue),
+ printer_data->GetString(kPrinterDescValue,
&printer_info.printer_description);
- printer_data->GetInteger(UTF8ToWide(kPrinterStatusValue),
+ printer_data->GetInteger(kPrinterStatusValue,
&printer_info.printer_status);
std::string caps_hash;
printer_data->GetString(kPrinterCapsHashValue, &caps_hash);
« no previous file with comments | « chrome/service/cloud_print/cloud_print_consts.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698