Index: components/autofill/browser/autofill_manager.h |
=================================================================== |
--- components/autofill/browser/autofill_manager.h (revision 192613) |
+++ components/autofill/browser/autofill_manager.h (working copy) |
@@ -79,7 +79,8 @@ |
public: |
static void CreateForWebContentsAndDelegate( |
content::WebContents* contents, |
- autofill::AutofillManagerDelegate* delegate); |
+ autofill::AutofillManagerDelegate* delegate, |
+ const std::string& app_locale); |
static AutofillManager* FromWebContents(content::WebContents* contents); |
// Registers our Enable/Disable Autofill pref. |
@@ -132,13 +133,16 @@ |
return manager_delegate_; |
} |
+ const std::string& app_locale() const { return app_locale_; } |
+ |
// Only for testing. |
void SetTestDelegate(autofill::AutofillManagerTestDelegate* delegate); |
protected: |
// Only test code should subclass AutofillManager. |
AutofillManager(content::WebContents* web_contents, |
- autofill::AutofillManagerDelegate* delegate); |
+ autofill::AutofillManagerDelegate* delegate, |
+ const std::string& app_locale); |
virtual ~AutofillManager(); |
// Test code should prefer to use this constructor. |
@@ -358,6 +362,8 @@ |
autofill::AutofillManagerDelegate* const manager_delegate_; |
+ std::string app_locale_; |
+ |
// The personal data manager, used to save and load personal data to/from the |
// web database. This is overridden by the AutofillManagerTest. |
// Weak reference. |