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) { |