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

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

Issue 22364007: AutocompleteInput::PageClassification -> AutocompleteInput::OmniboxContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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_edit_model.h
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.h b/chrome/browser/ui/omnibox/omnibox_edit_model.h
index afc9be70815226472a54d287f691749d2cf92137..7bbdbacea91e04857dd080b6c342fa5d0364321b 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
@@ -392,11 +392,11 @@ class OmniboxEditModel {
// keyword.
static bool IsSpaceCharForAcceptingKeyword(wchar_t c);
- // Classify the current page being viewed as, for example, the new tab
- // page or a normal web page. Used for logging omnibox events for
- // UMA opted-in users. Examines the user's profile to determine if the
- // current page is the user's home page.
- AutocompleteInput::PageClassification ClassifyPage() const;
+ // Returns the user's context for the current input: for example, the fakebox
+ // on the InstantExtended new tab page or a normal web page. Used for logging
+ // omnibox events for UMA opted-in users. Examines the user's profile to
+ // determine if the current page is the user's home page.
+ AutocompleteInput::OmniboxContext GetOmniboxContext() const;
// Sets |match| and |alternate_nav_url| based on classifying |text|.
// |alternate_nav_url| may be NULL.

Powered by Google App Engine
This is Rietveld 408576698