diff options
author | brettw <brettw@chromium.org> | 2015-06-24 13:54:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-24 20:55:38 +0000 |
commit | e6dae46fc681a8ad62f6937a6ac1cab3d51938a9 (patch) | |
tree | 2f75f6b3af2a17c8b1512b6881b00a8c9595ac96 /components/json_schema/json_schema_validator.cc | |
parent | 2ef675dbcd5943aad03184b67696330cc910568d (diff) | |
download | chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.zip chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.tar.gz chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.tar.bz2 |
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).
TBR=gauravsh@chromium.org for chromeos/network
Review URL: https://codereview.chromium.org/1200393002
Cr-Commit-Position: refs/heads/master@{#335999}
Diffstat (limited to 'components/json_schema/json_schema_validator.cc')
-rw-r--r-- | components/json_schema/json_schema_validator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/json_schema/json_schema_validator.cc b/components/json_schema/json_schema_validator.cc index 34ed95e..00a2144 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; } |