summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:03:42 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:03:42 +0000
commitb87c4a775b5b625dc2034b70e1232862d5d7faac (patch)
tree5e4939490ae5d5d049bc9c4ea5ccc1e70c0fb041 /chrome/browser/history
parentdf5f308da4fb0526f2af1fc8db24280ffcafcd6e (diff)
downloadchromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.zip
chromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.tar.gz
chromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.tar.bz2
base: Move StringSplitAlongWhitespace to string_split.h
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/5004002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r--chrome/browser/history/top_sites_database.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/history/top_sites_database.cc b/chrome/browser/history/top_sites_database.cc
index 8bfbcaf..4639494 100644
--- a/chrome/browser/history/top_sites_database.cc
+++ b/chrome/browser/history/top_sites_database.cc
@@ -5,6 +5,7 @@
#include "app/sql/connection.h"
#include "app/sql/transaction.h"
#include "base/file_util.h"
+#include "base/string_split.h"
#include "base/string_util.h"
#include "chrome/browser/diagnostics/sqlite_diagnostics.h"
#include "chrome/browser/history/history_types.h"
@@ -134,8 +135,8 @@ std::string TopSitesDatabase::GetRedirects(const MostVisitedURL& url) {
void TopSitesDatabase::SetRedirects(const std::string& redirects,
MostVisitedURL* url) {
std::vector<std::string> redirects_vector;
- SplitStringAlongWhitespace(redirects, &redirects_vector);
- for (size_t i = 0; i < redirects_vector.size(); i++)
+ base::SplitStringAlongWhitespace(redirects, &redirects_vector);
+ for (size_t i = 0; i < redirects_vector.size(); ++i)
url->redirects.push_back(GURL(redirects_vector[i]));
}