#include "components/autofill/core/browser/personal_data_manager_observer.h"
namespace autofill {
+class AutofillProfile;
class PersonalDataManager;
} // namespace autofill
virtual void OnPersonalDataChanged() OVERRIDE;
private:
+ FRIEND_TEST_ALL_PREFIXES(AutofillOptionsHandlerTest, AddressToDictionary);
+
// Loads the strings for the address and credit card overlays.
void SetAddressOverlayStrings(base::DictionaryValue* localized_strings);
void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings);
// Returns true if |personal_data_| is non-null and loaded.
bool IsPersonalDataLoaded() const;
+ // Fills in |address| with the data format that the options js expects.
+ static void AutofillProfileToDictionary(
+ const autofill::AutofillProfile& profile,
+ base::DictionaryValue* address);
+
// The personal data manager, used to load Autofill profiles and credit cards.
// Unowned pointer, may not be NULL.
autofill::PersonalDataManager* personal_data_;