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

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

Issue 10605003: Fixing some more instances where I put in HistoryServiceFactory::GetForProfile which will force cre… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: chrome/browser/history/history_tab_helper.cc
===================================================================
--- chrome/browser/history/history_tab_helper.cc (revision 143165)
+++ chrome/browser/history/history_tab_helper.cc (working copy)
@@ -182,8 +182,8 @@
if (profile->IsOffTheRecord())
return;
- HistoryService* hs =
- HistoryServiceFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS);
+ HistoryService* hs = HistoryServiceFactory::GetForProfileIfExists(
+ profile, Profile::IMPLICIT_ACCESS);
if (hs) {
NavigationEntry* entry = tab->GetController().GetLastCommittedEntry();
if (entry) {

Powered by Google App Engine
This is Rietveld 408576698