Add more string_util functions to base namespace.
Moves ReplaceFirstSubstringAfterOffset. It also changes the find/replace arguments to be string pieces (normally these are constants).
[email protected] for chromeos/network
Review URL: https://codereview.chromium.org/1200393002
Cr-Commit-Position: refs/heads/master@{#335999}
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 4e0af29..d79b217 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -219,10 +219,10 @@
url_spec.length() - 1);
base::string16 application_to_launch;
if (cmd_key.ReadValue(NULL, &application_to_launch) == ERROR_SUCCESS) {
- ReplaceSubstringsAfterOffset(&application_to_launch,
- 0,
- L"%1",
- parameters);
+ base::ReplaceSubstringsAfterOffset(&application_to_launch,
+ 0,
+ L"%1",
+ parameters);
return application_to_launch;
}
return base::string16();