Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1170)

Unified Diff: chrome/browser/history/history_tab_helper.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/history_backend_unittest.cc ('k') | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_tab_helper.cc
diff --git a/chrome/browser/history/history_tab_helper.cc b/chrome/browser/history/history_tab_helper.cc
index 5c383732565e22096f123061702d17ca3b316861..c89c52025ce47211270eb3b51cc2a4a1c2ac0708 100644
--- a/chrome/browser/history/history_tab_helper.cc
+++ b/chrome/browser/history/history_tab_helper.cc
@@ -188,7 +188,7 @@ HistoryService* HistoryTabHelper::GetHistoryService() {
return NULL;
return HistoryServiceFactory::GetForProfile(profile,
- Profile::IMPLICIT_ACCESS);
+ Profile::IMPLICIT_ACCESS).get();
}
void HistoryTabHelper::WebContentsDestroyed(WebContents* tab) {
@@ -200,7 +200,8 @@ void HistoryTabHelper::WebContentsDestroyed(WebContents* tab) {
return;
HistoryService* hs =
- HistoryServiceFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS);
+ HistoryServiceFactory::GetForProfile(
+ profile, Profile::IMPLICIT_ACCESS).get();
if (hs) {
NavigationEntry* entry = tab->GetController().GetLastCommittedEntry();
if (entry) {
« no previous file with comments | « chrome/browser/history/history_backend_unittest.cc ('k') | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698