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

Unified Diff: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc

Issue 1200393002: Add more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string
Patch Set: Android Created 5 years, 6 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 | « chromeos/network/onc/onc_utils.cc ('k') | components/autofill/core/browser/data_driven_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
index a04ac04c97da59d7bba8fd95a1eb1786ce7c10cf..e52e3325d8a53be828facad106af2707aea51761 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
@@ -268,15 +268,16 @@ bool LaunchPrintCommandFromTemplate(const base::string16& command_template,
const base::string16& job_title) {
base::string16 command_string(command_template);
// Substitude the place holder with the document path wrapped in quotes.
- ReplaceFirstSubstringAfterOffset(
+ base::ReplaceFirstSubstringAfterOffset(
&command_string, 0, kDocumentPathPlaceHolder,
EscapeCommandLineArg(xps_path.value()));
// Substitude the place holder with the document type wrapped in quotes.
- ReplaceFirstSubstringAfterOffset(&command_string, 0, kDocumentTypePlaceHolder,
- kXpsMimeType);
+ base::ReplaceFirstSubstringAfterOffset(
+ &command_string, 0, kDocumentTypePlaceHolder, kXpsMimeType);
// Substitude the place holder with the job title wrapped in quotes.
- ReplaceFirstSubstringAfterOffset(&command_string, 0, kJobTitlePlaceHolder,
- EscapeCommandLineArg(job_title));
+ base::ReplaceFirstSubstringAfterOffset(
+ &command_string, 0, kJobTitlePlaceHolder,
+ EscapeCommandLineArg(job_title));
base::CommandLine command = base::CommandLine::FromString(command_string);
« no previous file with comments | « chromeos/network/onc/onc_utils.cc ('k') | components/autofill/core/browser/data_driven_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698