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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.h

Issue 880353002: [Autofill] Log the number of autofill profiles available at form submission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaned up Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 // This should be called each time a page containing forms is loaded. 405 // This should be called each time a page containing forms is loaded.
406 static void LogIsAutofillEnabledAtPageLoad(bool enabled); 406 static void LogIsAutofillEnabledAtPageLoad(bool enabled);
407 407
408 // This should be called each time a new profile is launched. 408 // This should be called each time a new profile is launched.
409 static void LogIsAutofillEnabledAtStartup(bool enabled); 409 static void LogIsAutofillEnabledAtStartup(bool enabled);
410 410
411 // This should be called each time a new profile is launched. 411 // This should be called each time a new profile is launched.
412 static void LogStoredProfileCount(size_t num_profiles); 412 static void LogStoredProfileCount(size_t num_profiles);
413 413
414 // Log the number of profiles available when an autofillable form is
415 // submitted.
416 static void LogNumberOfProfilesAtAutofillableFormSubmission(
417 size_t num_profiles);
418
414 // Log the number of Autofill suggestions presented to the user when filling a 419 // Log the number of Autofill suggestions presented to the user when filling a
415 // form. 420 // form.
416 static void LogAddressSuggestionsCount(size_t num_suggestions); 421 static void LogAddressSuggestionsCount(size_t num_suggestions);
417 422
418 private: 423 private:
419 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 424 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
420 }; 425 };
421 426
422 } // namespace autofill 427 } // namespace autofill
423 428
424 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 429 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698