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

Unified Diff: components/json_schema/json_schema_validator.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
Index: components/json_schema/json_schema_validator.cc
diff --git a/components/json_schema/json_schema_validator.cc b/components/json_schema/json_schema_validator.cc
index 34ed95eaad98b479c017aff30617a2a4033125ee..00a214410446a42ba9c1b774c595fb276cea0c2b 100644
--- a/components/json_schema/json_schema_validator.cc
+++ b/components/json_schema/json_schema_validator.cc
@@ -372,7 +372,7 @@ std::string JSONSchemaValidator::GetJSONSchemaType(const base::Value* value) {
std::string JSONSchemaValidator::FormatErrorMessage(const std::string& format,
const std::string& s1) {
std::string ret_val = format;
- ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s1);
+ base::ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s1);
return ret_val;
}
@@ -381,8 +381,8 @@ std::string JSONSchemaValidator::FormatErrorMessage(const std::string& format,
const std::string& s1,
const std::string& s2) {
std::string ret_val = format;
- ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s1);
- ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s2);
+ base::ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s1);
+ base::ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s2);
return ret_val;
}
« no previous file with comments | « components/invalidation/gcm_network_channel_unittest.cc ('k') | components/password_manager/core/browser/export/csv_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698