summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-17 23:13:58 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-17 23:13:58 +0000
commitb75d4baceaa3fb0c3be1aad851e9cb594e1ce4f5 (patch)
tree72b910f29af445511e233ed76806de0e4b8bd51a /ppapi
parentf90c870feb546e5e11481c8835329cf0efc8733d (diff)
downloadchromium_src-b75d4baceaa3fb0c3be1aad851e9cb594e1ce4f5.zip
chromium_src-b75d4baceaa3fb0c3be1aad851e9cb594e1ce4f5.tar.gz
chromium_src-b75d4baceaa3fb0c3be1aad851e9cb594e1ce4f5.tar.bz2
Move IsStringASCII/UTF8 to base namespace.
Use StringPiece for IsStringUTF8. TBR=sky Review URL: https://codereview.chromium.org/196793010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/shared_impl/dictionary_var.cc2
-rw-r--r--ppapi/shared_impl/file_ref_util.cc2
-rw-r--r--ppapi/shared_impl/var.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/ppapi/shared_impl/dictionary_var.cc b/ppapi/shared_impl/dictionary_var.cc
index 54d2010..8676c43 100644
--- a/ppapi/shared_impl/dictionary_var.cc
+++ b/ppapi/shared_impl/dictionary_var.cc
@@ -90,7 +90,7 @@ PP_Var DictionaryVar::GetKeys() const {
bool DictionaryVar::SetWithStringKey(const std::string& utf8_key,
const PP_Var& value) {
- if (!IsStringUTF8(utf8_key))
+ if (!base::IsStringUTF8(utf8_key))
return false;
key_value_map_[utf8_key] = value;
diff --git a/ppapi/shared_impl/file_ref_util.cc b/ppapi/shared_impl/file_ref_util.cc
index 3be8e0a..a5523cb 100644
--- a/ppapi/shared_impl/file_ref_util.cc
+++ b/ppapi/shared_impl/file_ref_util.cc
@@ -36,7 +36,7 @@ bool IsValidInternalPath(const std::string& path) {
// The path starts with '/'
// The path must contain valid UTF-8 characters.
// It must not FilePath::ReferencesParent().
- if (path.empty() || !IsStringUTF8(path) || path[0] != '/')
+ if (path.empty() || !base::IsStringUTF8(path) || path[0] != '/')
return false;
base::FilePath file_path = base::FilePath::FromUTF8Unsafe(path);
if (file_path.ReferencesParent())
diff --git a/ppapi/shared_impl/var.cc b/ppapi/shared_impl/var.cc
index 8f3ddb5..3020182 100644
--- a/ppapi/shared_impl/var.cc
+++ b/ppapi/shared_impl/var.cc
@@ -148,7 +148,7 @@ PP_Var StringVar::StringToPPVar(const std::string& var) {
// static
PP_Var StringVar::StringToPPVar(const char* data, uint32 len) {
scoped_refptr<StringVar> str(new StringVar(data, len));
- if (!str.get() || !IsStringUTF8(str->value()))
+ if (!str.get() || !base::IsStringUTF8(str->value()))
return PP_MakeNull();
return str->GetPPVar();
}