Chromium Code Reviews| Index: components/autofill/core/browser/personal_data_manager.h |
| diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h |
| index 76452b39575e096f10bf67729c5c4b28891cbc60..08666d2834a6d63037d853bc780aea53aa986030 100644 |
| --- a/components/autofill/core/browser/personal_data_manager.h |
| +++ b/components/autofill/core/browser/personal_data_manager.h |
| @@ -184,6 +184,12 @@ class PersonalDataManager : public WebDataServiceConsumer, |
| const std::string& app_locale, |
| std::vector<AutofillProfile>* merged_profiles); |
| + // Returns true if |country_code| is a country that the user is likely to |
| + // be associated with the user. More concretely, it checks if there are any |
| + // profiles with this address or if the user's system timezone is in the given |
|
Dan Beam
2014/01/02 22:10:39
nit: with an address in |country_code|
Evan Stade
2014/01/02 22:23:16
Done.
|
| + // country. |
| + virtual bool IsCountryOfInterest(const std::string& country_code) const; |
| + |
| // Returns our best guess for the country a user is likely to use when |
| // inputting a new address. The value is calculated once and cached, so it |
| // will only update when Chrome is restarted. |
| @@ -255,6 +261,9 @@ class PersonalDataManager : public WebDataServiceConsumer, |
| // Returns the value of the AutofillEnabled pref. |
| virtual bool IsAutofillEnabled() const; |
| + // Overrideable for testing. |
| + virtual std::string CountryCodeForCurrentTimezone() const; |
| + |
| // For tests. |
| const AutofillMetrics* metric_logger() const { return metric_logger_.get(); } |