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

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

Issue 10458018: This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a bug in Windows UI. Created 8 years, 7 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/browser/autofill/password_generator.h
diff --git a/chrome/browser/autofill/password_generator.h b/chrome/browser/autofill/password_generator.h
index 0adbd435f43627877a26595ce8d54079e397a196..2c9bc5f281207a7935e795f6ef46eef644eaa27a 100644
--- a/chrome/browser/autofill/password_generator.h
+++ b/chrome/browser/autofill/password_generator.h
@@ -22,8 +22,10 @@ class PasswordGenerator {
~PasswordGenerator();
// Returns a random password. The string is guaranteed to be printable and
- // will not include whitespace characters.
- std::string Generate();
+ // will not include whitespace characters. Furthermore, it has a maximum
+ // length specified by the |max_length|, and contains AT LEAST one upper
+ // case letter, one lower case letter, one digit, and one other symbol.
+ std::string Generate(int max_length);
Garrett Casto 2012/05/30 00:46:35 I was wondering if we might want to change the way
zysxqn 2012/05/31 21:54:08 I like the idea of passing a PasswordGenerator to
private:

Powered by Google App Engine
This is Rietveld 408576698