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

Unified Diff: chrome/browser/search_engines/template_url_model.h

Issue 2846038: Add UMA logging of search engine selection position when the search engine lo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « chrome/browser/browser_main.cc ('k') | chrome/browser/views/first_run_search_engine_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_model.h
===================================================================
--- chrome/browser/search_engines/template_url_model.h (revision 50982)
+++ chrome/browser/search_engines/template_url_model.h (working copy)
@@ -219,6 +219,14 @@
Profile* profile() const { return profile_; }
+ void SetSearchEngineDialogSlot(int slot) {
+ search_engine_dialog_chosen_slot_ = slot;
+ }
+
+ int GetSearchEngineDialogSlot() const {
+ return search_engine_dialog_chosen_slot_;
+ }
+
protected:
// Cover method for the method of the same name on the HistoryService.
// url is the one that was visited with the given search terms.
@@ -365,6 +373,10 @@
const TemplateURL* default_search_provider_;
+ // Used for UX testing. Gives the slot in the search engine dialog that was
+ // chosen as the default search engine.
+ int search_engine_dialog_chosen_slot_;
+
// The default search provider from preferences. This is only valid if
// GetDefaultSearchProvider is invoked and we haven't been loaded or loading
// failed. If loading was successful this is not used.
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/views/first_run_search_engine_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698