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 9d05f4ed2853c5f8d599037f666b9c1cca5556a9..9bca15acb20874938d153a386f9dd2c35dde4c55 100644 |
--- a/chrome/browser/history/history_tab_helper.cc |
+++ b/chrome/browser/history/history_tab_helper.cc |
@@ -137,6 +137,13 @@ void HistoryTabHelper::TitleWasSet(NavigationEntry* entry, bool explicit_set) { |
} |
} |
+void HistoryTabHelper::SetHistoryContext(NavigationEntry* entry, int context) { |
+ history::HistoryService* hs = GetHistoryService(); |
+ if (hs) |
+ hs->SetPageHistoryContext(entry->GetVirtualURL(), |
+ static_cast<history::HistoryContext>(context)); |
+} |
+ |
history::HistoryService* HistoryTabHelper::GetHistoryService() { |
Profile* profile = |
Profile::FromBrowserContext(web_contents()->GetBrowserContext()); |