summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/password_generator.h
diff options
context:
space:
mode:
authorgcasto@chromium.org <gcasto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 04:26:16 +0000
committergcasto@chromium.org <gcasto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 04:26:16 +0000
commit7a3adb111a6cd0d35fdca47c8938e78086a5f64a (patch)
tree76f7333387e9cc8be1d8444589433efdd1e5a7e1 /chrome/browser/autofill/password_generator.h
parent460d3f08d72bd4cddc86d256812d24fc56a704a4 (diff)
downloadchromium_src-7a3adb111a6cd0d35fdca47c8938e78086a5f64a.zip
chromium_src-7a3adb111a6cd0d35fdca47c8938e78086a5f64a.tar.gz
chromium_src-7a3adb111a6cd0d35fdca47c8938e78086a5f64a.tar.bz2
Update PasswordGenerator to only use one non-alphanumeric character.
Most sites only require one such character, and many sites don't allow such characters. This should be more likely to generate a valid password and it will also have a smaller edit distance to a valid password if the user needs to change it. BUG=165318 Review URL: https://chromiumcodereview.appspot.com/11511014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/password_generator.h')
-rw-r--r--chrome/browser/autofill/password_generator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autofill/password_generator.h b/chrome/browser/autofill/password_generator.h
index dd33160..283fdf5 100644
--- a/chrome/browser/autofill/password_generator.h
+++ b/chrome/browser/autofill/password_generator.h
@@ -26,9 +26,10 @@ class PasswordGenerator {
// (1) Each character is guaranteed to be a non-whitespace printable ASCII
// character.
// (2) The generated password will contain AT LEAST one upper case letter, one
- // lower case letter, one digit, and one other symbol.
+ // lower case letter, one digit, and EXACTLY one other symbol.
// (3) The password length will be equal to |password_length_| (see comment
// for the constructor).
+ // Not thread safe.
std::string Generate() const;
private: