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

Unified Diff: chrome/renderer/autofill/password_generation_manager.h

Issue 10222017: Make password generation switched by a preference in chrome settings rather than a command line fla… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: chrome/renderer/autofill/password_generation_manager.h
diff --git a/chrome/renderer/autofill/password_generation_manager.h b/chrome/renderer/autofill/password_generation_manager.h
index 85a9bb5967f29019282eb165b695922881d303a3..dfec67090f9e7a7c0d95105cb8d4308fbf68b7b5 100644
--- a/chrome/renderer/autofill/password_generation_manager.h
+++ b/chrome/renderer/autofill/password_generation_manager.h
@@ -41,10 +41,15 @@ class PasswordGenerationManager : public content::RenderViewObserver {
// Message handlers.
void OnPasswordAccepted(const string16& password);
void OnPasswordSyncEnabled(bool enabled);
+ void OnPasswordGenerationEnabled(bool enabled);
- // True if the browser believes that generating passwords is okay for this
+ // True if password sync is enabled for the profile associated with this
// renderer.
- bool enabled_;
+ bool sync_enabled_;
+
+ // True if auto password generation is enabled for the profile associated
+ // with this renderer.
+ bool password_generation_enabled_;
std::pair<WebKit::WebInputElement,
std::vector<WebKit::WebInputElement> > account_creation_elements_;

Powered by Google App Engine
This is Rietveld 408576698