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

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: addressing isherman@ comments 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // get called back. We store handles for both profile and credit card queries 322 // get called back. We store handles for both profile and credit card queries
323 // so they can be loaded at the same time. 323 // so they can be loaded at the same time.
324 WebDataServiceBase::Handle pending_profiles_query_; 324 WebDataServiceBase::Handle pending_profiles_query_;
325 WebDataServiceBase::Handle pending_server_profiles_query_; 325 WebDataServiceBase::Handle pending_server_profiles_query_;
326 WebDataServiceBase::Handle pending_creditcards_query_; 326 WebDataServiceBase::Handle pending_creditcards_query_;
327 WebDataServiceBase::Handle pending_server_creditcards_query_; 327 WebDataServiceBase::Handle pending_server_creditcards_query_;
328 328
329 // The observers. 329 // The observers.
330 ObserverList<PersonalDataManagerObserver> observers_; 330 ObserverList<PersonalDataManagerObserver> observers_;
331 331
332 // Used for testing purposes only. If true wallet card sync will be enabled
333 // regardless of command line switches or prefs.
334 bool test_force_wallet_card_sync_enabled_;
Evan Stade 2015/02/02 23:13:12 this is not appropriate. You can adjust the comman
Walter Cacau 2015/02/03 00:47:40 Done.
335
332 private: 336 private:
333 // Finds the country code that occurs most frequently among all profiles. 337 // Finds the country code that occurs most frequently among all profiles.
334 // Prefers verified profiles over unverified ones. 338 // Prefers verified profiles over unverified ones.
335 std::string MostCommonCountryCodeFromProfiles() const; 339 std::string MostCommonCountryCodeFromProfiles() const;
336 340
337 // Called when the value of prefs::kAutofillEnabled changes. 341 // Called when the value of prefs::kAutofillEnabled changes.
338 void EnabledPrefChanged(); 342 void EnabledPrefChanged();
339 343
340 // Functionally equivalent to GetProfiles(), but also records metrics if 344 // Functionally equivalent to GetProfiles(), but also records metrics if
341 // |record_metrics| is true. Metrics should be recorded when the returned 345 // |record_metrics| is true. Metrics should be recorded when the returned
(...skipping 18 matching lines...) Expand all
360 364
361 // An observer to listen for changes to prefs::kAutofillEnabled. 365 // An observer to listen for changes to prefs::kAutofillEnabled.
362 scoped_ptr<BooleanPrefMember> enabled_pref_; 366 scoped_ptr<BooleanPrefMember> enabled_pref_;
363 367
364 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 368 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
365 }; 369 };
366 370
367 } // namespace autofill 371 } // namespace autofill
368 372
369 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 373 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698