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

Unified Diff: components/autofill/browser/autofill_manager.h

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698