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

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

Issue 884843002: Recording in UMA when a user interacted with an address form or a credit card form. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing test_personal_data_manager. 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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Finds the country code that occurs most frequently among all profiles. 333 // Finds the country code that occurs most frequently among all profiles.
334 // Prefers verified profiles over unverified ones. 334 // Prefers verified profiles over unverified ones.
335 std::string MostCommonCountryCodeFromProfiles() const; 335 std::string MostCommonCountryCodeFromProfiles() const;
336 336
337 // Called when the value of prefs::kAutofillEnabled changes. 337 // Called when the value of prefs::kAutofillEnabled changes.
338 void EnabledPrefChanged(); 338 void EnabledPrefChanged();
339 339
340 // Functionally equivalent to GetProfiles(), but also records metrics if 340 // Functionally equivalent to GetProfiles(), but also records metrics if
341 // |record_metrics| is true. Metrics should be recorded when the returned 341 // |record_metrics| is true. Metrics should be recorded when the returned
342 // profiles will be used to populate the fields shown in an Autofill popup. 342 // profiles will be used to populate the fields shown in an Autofill popup.
343 const std::vector<AutofillProfile*>& GetProfiles( 343 virtual const std::vector<AutofillProfile*>& GetProfiles(
344 bool record_metrics) const; 344 bool record_metrics) const;
345 345
346 const std::string app_locale_; 346 const std::string app_locale_;
347 347
348 // The default country code for new addresses. 348 // The default country code for new addresses.
349 mutable std::string default_country_code_; 349 mutable std::string default_country_code_;
350 350
351 // The PrefService that this instance uses. Must outlive this instance. 351 // The PrefService that this instance uses. Must outlive this instance.
352 PrefService* pref_service_; 352 PrefService* pref_service_;
353 353
354 // Whether the user is currently operating in an off-the-record context. 354 // Whether the user is currently operating in an off-the-record context.
355 // Default value is false. 355 // Default value is false.
356 bool is_off_the_record_; 356 bool is_off_the_record_;
357 357
358 // Whether we have already logged the number of profiles this session. 358 // Whether we have already logged the number of profiles this session.
359 mutable bool has_logged_profile_count_; 359 mutable bool has_logged_profile_count_;
360 360
361 // An observer to listen for changes to prefs::kAutofillEnabled. 361 // An observer to listen for changes to prefs::kAutofillEnabled.
362 scoped_ptr<BooleanPrefMember> enabled_pref_; 362 scoped_ptr<BooleanPrefMember> enabled_pref_;
363 363
364 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 364 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
365 }; 365 };
366 366
367 } // namespace autofill 367 } // namespace autofill
368 368
369 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 369 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698