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

Unified Diff: content/browser/android/java/java_type.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 | « components/url_fixer/url_fixer_unittest.cc ('k') | content/browser/geolocation/wifi_data_provider_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/java/java_type.cc
diff --git a/content/browser/android/java/java_type.cc b/content/browser/android/java/java_type.cc
index 5cd9b5454358afc37ec12352a6d7a9c5a68c19c2..3c48532e6c1972acb995dda4e262565a119f5dd5 100644
--- a/content/browser/android/java/java_type.cc
+++ b/content/browser/android/java/java_type.cc
@@ -5,7 +5,7 @@
#include "content/browser/android/java/java_type.h"
#include "base/logging.h"
-#include "base/strings/string_util.h" // For ReplaceSubstringsAfterOffset
+#include "base/strings/string_util.h"
namespace content {
namespace {
@@ -53,7 +53,8 @@ scoped_ptr<JavaType> CreateFromArrayComponentTypeName(
} else {
result->type = JavaType::TypeObject;
result->class_jni_name = type_name.substr(1, type_name.length() - 2);
- ReplaceSubstringsAfterOffset(&result->class_jni_name, 0, ".", "/");
+ base::ReplaceSubstringsAfterOffset(
+ &result->class_jni_name, 0, ".", "/");
}
break;
default:
@@ -120,7 +121,7 @@ JavaType JavaType::CreateFromBinaryName(const std::string& binary_name) {
} else {
result.type = JavaType::TypeObject;
result.class_jni_name = binary_name;
- ReplaceSubstringsAfterOffset(&result.class_jni_name, 0, ".", "/");
+ base::ReplaceSubstringsAfterOffset(&result.class_jni_name, 0, ".", "/");
}
return result;
}
« no previous file with comments | « components/url_fixer/url_fixer_unittest.cc ('k') | content/browser/geolocation/wifi_data_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698