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

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

Issue 10168017: Only enable password generation if password manager and autofill are both (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments 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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.h
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h
index 8278ca73e0a482ba4d1eda59c55c2e91996e39f4..d0045f2fac945675aeff3ef132da7b2c08bf3be7 100644
--- a/chrome/browser/autofill/autofill_manager.h
+++ b/chrome/browser/autofill/autofill_manager.h
@@ -115,10 +115,11 @@ class AutofillManager : public content::WebContentsObserver,
// Reset cache.
void Reset();
- // Informs the renderers of the current password sync state for use in
- // password generation. This is a separate function to aid with testing.
- virtual void SendPasswordSyncStateToRenderer(content::RenderViewHost* host,
- bool enabled);
+ // Informs the renderer of the current password generation state. This is a
+ // separate function to aid with testing.
+ virtual void SendPasswordGenerationStateToRenderer(
+ content::RenderViewHost* host,
+ bool enabled);
// Logs quality metrics for the |submitted_form| and uploads the form data
// to the crowdsourcing server, if appropriate.
@@ -172,12 +173,12 @@ class AutofillManager : public content::WebContentsObserver,
// Register as an observer with the sync service.
void RegisterWithSyncService();
- // Determines what the current state of password sync is, and if it has
- // changed from password_sync_enabled_. If it has changed or if
+ // Determines what the current state of password generation is, and if it has
+ // changed from |password_generation_enabled_|. If it has changed or if
// |new_renderer| is true, it notifies the renderer of this change via
- // SendPasswordSyncStateToRenderer.
- void UpdatePasswordSyncState(content::RenderViewHost* host,
- bool new_renderer);
+ // SendPasswordGenerationStateToRenderer.
+ void UpdatePasswordGenerationState(content::RenderViewHost* host,
+ bool new_renderer);
void OnFormsSeen(const std::vector<webkit::forms::FormData>& forms,
const base::TimeTicks& timestamp);
@@ -336,10 +337,10 @@ class AutofillManager : public content::WebContentsObserver,
// When the user first interacted with a potentially fillable form on this
// page.
base::TimeTicks initial_interaction_timestamp_;
- // If password sync is enabled. We cache this value so that we don't
+ // If password generation is enabled. We cache this value so that we don't
// spam the renderer with messages during startup when the sync state
// is changing rapidly.
- bool password_sync_enabled_;
+ bool password_generation_enabled_;
// The ProfileSyncService associated with this tab. This may be NULL in
// testing.
base::WeakPtr<ProfileSyncService> sync_service_;
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698