summaryrefslogtreecommitdiffstats
path: root/chrome/tools/profiles
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 19:44:31 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 19:44:31 +0000
commit9aac6686b382eb940e337949d0c0aad3de1dc3e9 (patch)
tree5cd41bd65e36adb9c6b6d23dc940496e4cee6b30 /chrome/tools/profiles
parent9f0040212be6909c669f44cc55397a523cf0e9d0 (diff)
downloadchromium_src-9aac6686b382eb940e337949d0c0aad3de1dc3e9.zip
chromium_src-9aac6686b382eb940e337949d0c0aad3de1dc3e9.tar.gz
chromium_src-9aac6686b382eb940e337949d0c0aad3de1dc3e9.tar.bz2
Removing usage of profile_->GetHistory() from the codebase in order to remove that function.
BUG=97804 TEST=existing unittests TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10560019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r--chrome/tools/profiles/generate_profile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc
index c310879..ab7bbdf 100644
--- a/chrome/tools/profiles/generate_profile.cc
+++ b/chrome/tools/profiles/generate_profile.cc
@@ -19,6 +19,7 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/history/history.h"
+#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/history/top_sites.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/thumbnail_score.h"
@@ -114,7 +115,7 @@ void InsertURLBatch(Profile* profile,
int batch_size,
int types) {
HistoryService* history_service =
- profile->GetHistoryService(Profile::EXPLICIT_ACCESS);
+ HistoryServiceFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS);
// Probability of following a link on the current "page"
// (vs randomly jumping to a new page).