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

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

Issue 1143183002: Proof of concept implementation of context based history filtering. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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());
« no previous file with comments | « chrome/browser/history/history_tab_helper.h ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698