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

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

Issue 19810002: Omnibox Logging: Record Whether User Was on a Search Result 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
« no previous file with comments | « no previous file | chrome/common/metrics/proto/omnibox_event.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 6b54a7224754bdc202a6787aff456018ed6cb44f..2a03a2a427191cfa8b6e7788682c08558c374582 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -1280,6 +1280,10 @@ metrics::OmniboxEventProto::PageClassification
return metrics::OmniboxEventProto_PageClassification_BLANK;
if (url == profile()->GetPrefs()->GetString(prefs::kHomePage))
return metrics::OmniboxEventProto_PageClassification_HOMEPAGE;
+ if (view_->toolbar_model()->WouldReplaceSearchURLWithSearchTerms(true)) {
+ return metrics::
+ OmniboxEventProto_PageClassification_SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT;
Ilya Sherman 2013/07/19 21:06:34 nit: I think you can refer to this as metrics::Omn
Mark P 2013/07/19 21:40:22 Yup, that works. Done. Also changed (for consist
+ }
return metrics::OmniboxEventProto_PageClassification_OTHER;
}
« no previous file with comments | « no previous file | chrome/common/metrics/proto/omnibox_event.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698