From 7594f6d81259f9a299e50c4174af080bb5e0b288 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 15 Sep 2010 13:36:22 +0000 Subject: 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 --- chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/renderer/safe_browsing') 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 #include #include + #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 host_tokens; - SplitStringDontTrim(host, '.', &host_tokens); + base::SplitStringDontTrim(host, '.', &host_tokens); // Get rid of any empty components. std::vector::iterator new_end = std::remove(host_tokens.begin(), host_tokens.end(), ""); -- cgit v1.1