summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender/prerender_local_predictor.cc
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 22:39:35 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 22:39:35 +0000
commit026e017c2f75e87bca73ad813a57a3c026724e03 (patch)
tree4508f85b4abeb4d6d7a245adfe72103b4d00dfd3 /chrome/browser/prerender/prerender_local_predictor.cc
parent963e87c67a78a953c0a5fb1ce06949d0afb6109e (diff)
downloadchromium_src-026e017c2f75e87bca73ad813a57a3c026724e03.zip
chromium_src-026e017c2f75e87bca73ad813a57a3c026724e03.tar.gz
chromium_src-026e017c2f75e87bca73ad813a57a3c026724e03.tar.bz2
Removing usage of profile_->GetHistory() from the codebase in order to remove that function.
BUG=97804 TEST=existing unittests Review URL: https://chromiumcodereview.appspot.com/10563011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender/prerender_local_predictor.cc')
-rw-r--r--chrome/browser/prerender/prerender_local_predictor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/prerender/prerender_local_predictor.cc b/chrome/browser/prerender/prerender_local_predictor.cc
index 5fee136..f8925b7 100644
--- a/chrome/browser/prerender/prerender_local_predictor.cc
+++ b/chrome/browser/prerender/prerender_local_predictor.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/history_database.h"
+#include "chrome/browser/history/history_service_factory.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/page_transition_types.h"
@@ -308,7 +309,7 @@ HistoryService* PrerenderLocalPredictor::GetHistoryIfExists() const {
Profile* profile = prerender_manager_->profile();
if (!profile)
return NULL;
- return profile->GetHistoryServiceWithoutCreating();
+ return HistoryServiceFactory::GetForProfileIfExists(profile);
}
void PrerenderLocalPredictor::Init() {