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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 6465020: Add metrics for omnibox Google searches that has no RLZ token for windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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/browser/search_engines/template_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index f822d5e620460ab90de234de5718d95bbd9ed15d..d8681d77b8909ae71ab7c416ba726ce263cb4723 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc
@@ -373,8 +373,14 @@ void AutocompleteEditModel::AcceptInput(WindowOpenDisposition disposition,
const TemplateURL* default_provider =
profile_->GetTemplateURLModel()->GetDefaultSearchProvider();
if (default_provider && default_provider->url() &&
- default_provider->url()->HasGoogleBaseURLs())
+ default_provider->url()->HasGoogleBaseURLs()) {
GoogleURLTracker::GoogleURLSearchCommitted();
+#if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
+ // TODO(pastarmovj): Remove these metrics once we have proven that (close
+ // to) none searches that should have RLZ are sent out without one.
+ default_provider->url()->CollectRLZMetrics();
+#endif
+ }
}
view_->OpenURL(match.destination_url, disposition, match.transition,
alternate_nav_url, AutocompletePopupModel::kNoMatch,
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698