summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 00:35:36 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 00:35:36 +0000
commit76eb0247d08fa6c503517ec1a0cb8e6566cd39c7 (patch)
treee14c2632fab2f76df22827fe0c7908fd54240699 /chrome/common
parent7f8aff5b10859950cf9a6996a5d3d288ea3c75f4 (diff)
downloadchromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.zip
chromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.tar.gz
chromium_src-76eb0247d08fa6c503517ec1a0cb8e6566cd39c7.tar.bz2
base: Move SplitString functions into the base namespace and update the callers.
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3750001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/url_pattern.cc2
-rw-r--r--chrome/common/pepper_plugin_registry.cc6
-rw-r--r--chrome/common/zip.cc2
3 files changed, 5 insertions, 5 deletions
diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
index 62459a3..aa7e252 100644
--- a/chrome/common/extensions/url_pattern.cc
+++ b/chrome/common/extensions/url_pattern.cc
@@ -112,7 +112,7 @@ bool URLPattern::Parse(const std::string& pattern) {
// The first component can optionally be '*' to match all subdomains.
std::vector<std::string> host_components;
- SplitString(host_, '.', &host_components);
+ base::SplitString(host_, '.', &host_components);
if (host_components[0] == "*") {
match_subdomains_ = true;
host_components.erase(host_components.begin(),
diff --git a/chrome/common/pepper_plugin_registry.cc b/chrome/common/pepper_plugin_registry.cc
index 7243665..87a2bd3 100644
--- a/chrome/common/pepper_plugin_registry.cc
+++ b/chrome/common/pepper_plugin_registry.cc
@@ -75,17 +75,17 @@ void PepperPluginRegistry::GetPluginInfoFromSwitch(
// *1( LWS + ";" + LWS + <mime-type> )
std::vector<std::string> modules;
- SplitString(value, ',', &modules);
+ base::SplitString(value, ',', &modules);
for (size_t i = 0; i < modules.size(); ++i) {
std::vector<std::string> parts;
- SplitString(modules[i], ';', &parts);
+ base::SplitString(modules[i], ';', &parts);
if (parts.size() < 2) {
DLOG(ERROR) << "Required mime-type not found";
continue;
}
std::vector<std::string> name_parts;
- SplitString(parts[0], '#', &name_parts);
+ base::SplitString(parts[0], '#', &name_parts);
PepperPluginInfo plugin;
#if defined(OS_WIN)
diff --git a/chrome/common/zip.cc b/chrome/common/zip.cc
index 01de36f..3e24b53 100644
--- a/chrome/common/zip.cc
+++ b/chrome/common/zip.cc
@@ -49,7 +49,7 @@ static bool ExtractCurrentFile(unzFile zip_file,
if (filename.find(FILE_PATH_LITERAL("..")) != FilePath::StringType::npos)
return false;
- SplitString(filename, '/', &filename_parts);
+ base::SplitString(filename, '/', &filename_parts);
FilePath dest_file(dest_dir);
std::vector<FilePath::StringType>::iterator iter;