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

Unified Diff: chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc

Issue 20043003: Omnibox Logging: Record Whether the User Was on a Search Results Page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/ui/omnibox/omnibox_current_page_delegate_impl.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc b/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc
index e26f8d5c08858f523c4fdc418ef98829eb9e39ed..055bdad852f745394321abdc012bca88ea6c67c6 100644
--- a/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc
+++ b/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc
@@ -40,6 +40,13 @@ bool OmniboxCurrentPageDelegateImpl::IsInstantNTP() const {
return chrome::IsInstantNTP(controller_->GetWebContents());
}
+bool OmniboxCurrentPageDelegateImpl::IsSearchResultsPage() const {
+ SearchTabHelper* search_tab_helper =
+ SearchTabHelper::FromWebContents(controller_->GetWebContents());
+ return (search_tab_helper &&
+ search_tab_helper->model()->mode().is_search_results());
+}
+
bool OmniboxCurrentPageDelegateImpl::IsLoading() const {
return controller_->GetWebContents()->IsLoading();
}
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698