diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 13:36:22 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 13:36:22 +0000 |
commit | 7594f6d81259f9a299e50c4174af080bb5e0b288 (patch) | |
tree | 8f4a3e06e80b59421f7a566effc8a5fb1f95960e /chrome/renderer/safe_browsing | |
parent | 769c462e0ffbbbc2f210a76874d041dbcff921fc (diff) | |
download | chromium_src-7594f6d81259f9a299e50c4174af080bb5e0b288.zip chromium_src-7594f6d81259f9a299e50c4174af080bb5e0b288.tar.gz chromium_src-7594f6d81259f9a299e50c4174af080bb5e0b288.tar.bz2 |
base: Move SplitStringDontTrim functions from string_util.h to string_split.h
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/3366011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/safe_browsing')
-rw-r--r-- | chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc b/chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc index 7937cea..4686a41 100644 --- a/chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc +++ b/chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc @@ -7,9 +7,11 @@ #include <algorithm> #include <string> #include <vector> + #include "base/histogram.h" #include "base/logging.h" #include "base/perftimer.h" +#include "base/string_split.h" #include "base/string_util.h" #include "chrome/renderer/safe_browsing/features.h" #include "googleurl/src/gurl.h" @@ -54,7 +56,7 @@ bool PhishingUrlFeatureExtractor::ExtractFeatures(const GURL& url, // Pull off the TLD and the preceeding dot. host.erase(tld_start - 1); std::vector<std::string> host_tokens; - SplitStringDontTrim(host, '.', &host_tokens); + base::SplitStringDontTrim(host, '.', &host_tokens); // Get rid of any empty components. std::vector<std::string>::iterator new_end = std::remove(host_tokens.begin(), host_tokens.end(), ""); |