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

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

Issue 21395002: [InstantExtended] Fixing how PageLoadSRP is emitted. Previously it was emitted only for Instant sea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last upload didn't seem to work 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_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index bdc292c8f8a68c89f27e61b0512d755ff3eca873..45dc8d012795eb2f6c4d0c0c4b5b6702e7d12adf 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -717,10 +717,10 @@ void OmniboxEditModel::OpenMatch(const AutocompleteMatch& match,
// Track whether the destination URL sends us to a search results page
// using the default search provider.
- TemplateURL* default_provider =
+ bool is_search_results =
Peter Kasting 2013/07/31 23:56:51 Nit: Not the best name; instead of trying to think
rpetterson 2013/08/05 19:46:12 Done.
TemplateURLServiceFactory::GetForProfile(profile_)->
- GetDefaultSearchProvider();
- if (default_provider && default_provider->IsSearchURL(destination_url))
+ IsSearchResultsPageFromDefaultSearchProvider(destination_url);
+ if (is_search_results)
Peter Kasting 2013/07/31 23:56:51 Nit: While here: {}
rpetterson 2013/08/05 19:46:12 Done.
content::RecordAction(
UserMetricsAction("OmniboxDestinationURLIsSearchOnDSP"));

Powered by Google App Engine
This is Rietveld 408576698