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

Issue 10458018: This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update… (Closed)

Created:
8 years, 6 months ago by zysxqn
Modified:
8 years, 6 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, brettw-cc_chromium.org, Ilya Sherman, dyu1, darin-cc_chromium.org
Visibility:
Public.

Description

This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update the password generation algorithm to contain at least one upper case letter, one lower case letter, one digit, and one other symbol. BUG= TEST=PasswordGeneratorTest, AutofillManagerTest, PasswordGenerationManagerTest. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140812

Patch Set 1 #

Patch Set 2 : Fix a bug in Windows UI. #

Patch Set 3 : Fix a bug in Windows UI. #

Total comments: 48

Patch Set 4 : Make password generator independent of platforms. #

Total comments: 52

Patch Set 5 : Some changes based on the code review. #

Total comments: 10

Patch Set 6 : Address comments. #

Patch Set 7 : Fix a bug. #

Total comments: 8

Patch Set 8 : Addressing some more comments. #

Patch Set 9 : Some nit. #

Total comments: 8

Patch Set 10 : Futher comments. #

Total comments: 4

Patch Set 11 : Solve conflicts. #

Total comments: 4

Patch Set 12 : Update some comments. #

Patch Set 13 : Fix a windows UI bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -30 lines) Patch
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/autofill/password_generator.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/autofill/password_generator.cc View 1 2 3 4 5 6 7 1 chunk +90 lines, -5 lines 0 comments Download
M chrome/browser/autofill/password_generator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +39 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/password_generation_bubble_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/password_generation_bubble_gtk.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/password_generation_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/password_generation_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M chrome/common/autofill_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/autofill/password_generation_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
zysxqn
8 years, 6 months ago (2012-05-29 21:40:40 UTC) #1
Ilya Sherman
This change is not UI-specific, so I am surprised by the number of UI-specific headers ...
8 years, 6 months ago (2012-05-30 00:04:32 UTC) #2
Garrett Casto
It looks like Ilya and I collided with some of our comments. I've tried to ...
8 years, 6 months ago (2012-05-30 00:46:35 UTC) #3
zysxqn
Made the password generator independent of platforms. http://codereview.chromium.org/10458018/diff/3001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/3001/chrome/browser/autofill/autofill_manager.cc#newcode727 chrome/browser/autofill/autofill_manager.cc:727: browser->window()->ShowPasswordGenerationBubble(bounds, max_length); ...
8 years, 6 months ago (2012-05-31 21:54:04 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): https://chromiumcodereview.appspot.com/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); This will be deleted immediately at the ...
8 years, 6 months ago (2012-06-01 01:09:55 UTC) #5
zysxqn
http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); On 2012/06/01 01:09:55, Ilya Sherman wrote: > ...
8 years, 6 months ago (2012-06-01 19:01:32 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/10458018/diff/11001/chrome/browser/autofill/password_generator.h File chrome/browser/autofill/password_generator.h (right): https://chromiumcodereview.appspot.com/10458018/diff/11001/chrome/browser/autofill/password_generator.h#newcode13 chrome/browser/autofill/password_generator.h:13: const unsigned int kDefaultPasswordLength = 12; On 2012/06/01 19:01:32, ...
8 years, 6 months ago (2012-06-01 19:32:09 UTC) #7
Garrett Casto
http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); On 2012/06/01 19:01:32, zysxqn wrote: > On ...
8 years, 6 months ago (2012-06-01 20:02:02 UTC) #8
zysxqn
http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/11001/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); On 2012/06/01 20:02:02, Garrett Casto wrote: > ...
8 years, 6 months ago (2012-06-01 22:32:53 UTC) #9
Ilya Sherman
http://codereview.chromium.org/10458018/diff/26002/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/26002/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); This will be freed as soon as ...
8 years, 6 months ago (2012-06-04 21:17:52 UTC) #10
zysxqn
http://codereview.chromium.org/10458018/diff/26002/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/26002/chrome/browser/autofill/autofill_manager.cc#newcode729 chrome/browser/autofill/autofill_manager.cc:729: new autofill::PasswordGenerator(max_length)); On 2012/06/04 21:17:52, Ilya Sherman wrote: > ...
8 years, 6 months ago (2012-06-04 22:40:15 UTC) #11
Ilya Sherman
http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.h File chrome/browser/autofill/autofill_manager.h (right): http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.h#newcode365 chrome/browser/autofill/autofill_manager.h:365: // To be passed to the Password Generation UI ...
8 years, 6 months ago (2012-06-04 22:49:15 UTC) #12
Ilya Sherman
http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.cc#newcode730 chrome/browser/autofill/autofill_manager.cc:730: bounds, password_generator_.get()); Is this bubble guaranteed to be hidden ...
8 years, 6 months ago (2012-06-04 22:52:31 UTC) #13
Garrett Casto
http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.cc#newcode730 chrome/browser/autofill/autofill_manager.cc:730: bounds, password_generator_.get()); On 2012/06/04 22:52:32, Ilya Sherman wrote: > ...
8 years, 6 months ago (2012-06-04 22:58:57 UTC) #14
Ilya Sherman
http://codereview.chromium.org/10458018/diff/39002/chrome/browser/ui/gtk/password_generation_bubble_gtk.h File chrome/browser/ui/gtk/password_generation_bubble_gtk.h (right): http://codereview.chromium.org/10458018/diff/39002/chrome/browser/ui/gtk/password_generation_bubble_gtk.h#newcode54 chrome/browser/ui/gtk/password_generation_bubble_gtk.h:54: scoped_ptr<autofill::PasswordGenerator> password_generator_; On 2012/06/04 22:58:57, Garrett Casto wrote: > ...
8 years, 6 months ago (2012-06-04 23:08:22 UTC) #15
zysxqn
http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.h File chrome/browser/autofill/autofill_manager.h (right): http://codereview.chromium.org/10458018/diff/39002/chrome/browser/autofill/autofill_manager.h#newcode365 chrome/browser/autofill/autofill_manager.h:365: // To be passed to the Password Generation UI ...
8 years, 6 months ago (2012-06-04 23:17:18 UTC) #16
Ilya Sherman
LGTM, thanks.
8 years, 6 months ago (2012-06-04 23:46:18 UTC) #17
Garrett Casto
http://codereview.chromium.org/10458018/diff/33003/chrome/browser/ui/gtk/password_generation_bubble_gtk.h File chrome/browser/ui/gtk/password_generation_bubble_gtk.h (right): http://codereview.chromium.org/10458018/diff/33003/chrome/browser/ui/gtk/password_generation_bubble_gtk.h#newcode11 chrome/browser/ui/gtk/password_generation_bubble_gtk.h:11: #include "base/basictypes.h" What is this needed for? http://codereview.chromium.org/10458018/diff/33003/chrome/browser/ui/views/password_generation_bubble_view.h File ...
8 years, 6 months ago (2012-06-04 23:50:51 UTC) #18
zysxqn
http://codereview.chromium.org/10458018/diff/33003/chrome/browser/ui/gtk/password_generation_bubble_gtk.h File chrome/browser/ui/gtk/password_generation_bubble_gtk.h (right): http://codereview.chromium.org/10458018/diff/33003/chrome/browser/ui/gtk/password_generation_bubble_gtk.h#newcode11 chrome/browser/ui/gtk/password_generation_bubble_gtk.h:11: #include "base/basictypes.h" On 2012/06/04 23:50:52, Garrett Casto wrote: > ...
8 years, 6 months ago (2012-06-05 16:18:14 UTC) #19
Garrett Casto
lgtm
8 years, 6 months ago (2012-06-05 16:27:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/33003
8 years, 6 months ago (2012-06-05 16:29:49 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autofill/autofill_manager.cc: While running patch -p1 --forward --force; patching file chrome/browser/autofill/autofill_manager.cc ...
8 years, 6 months ago (2012-06-05 16:29:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/33003
8 years, 6 months ago (2012-06-05 16:31:33 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autofill/autofill_manager.cc: While running patch -p1 --forward --force; patching file chrome/browser/autofill/autofill_manager.cc ...
8 years, 6 months ago (2012-06-05 16:31:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/33003
8 years, 6 months ago (2012-06-05 16:41:51 UTC) #25
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autofill/autofill_manager.cc: While running patch -p1 --forward --force; patching file chrome/browser/autofill/autofill_manager.cc ...
8 years, 6 months ago (2012-06-05 16:42:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/54001
8 years, 6 months ago (2012-06-05 18:12:56 UTC) #27
commit-bot: I haz the power
Presubmit check for 10458018-54001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-05 18:13:06 UTC) #28
zysxqn
+ben, ben, can you take a look at and approve the UI part? Thanks, Yue
8 years, 6 months ago (2012-06-05 18:14:41 UTC) #29
zysxqn
Looks like Ben is OOO this week. +Peter and Scott for the UI part. Thanks, ...
8 years, 6 months ago (2012-06-05 23:37:09 UTC) #30
sky
LGTM http://codereview.chromium.org/10458018/diff/54001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): http://codereview.chromium.org/10458018/diff/54001/chrome/browser/ui/browser_window.h#newcode391 chrome/browser/ui/browser_window.h:391: autofill::PasswordGenerator* password_generator, Document ownership of |password_generator| http://codereview.chromium.org/10458018/diff/54001/chrome/browser/ui/views/password_generation_bubble_view.h File ...
8 years, 6 months ago (2012-06-06 04:04:07 UTC) #31
zysxqn
Submitting... http://codereview.chromium.org/10458018/diff/54001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): http://codereview.chromium.org/10458018/diff/54001/chrome/browser/ui/browser_window.h#newcode391 chrome/browser/ui/browser_window.h:391: autofill::PasswordGenerator* password_generator, On 2012/06/06 04:04:07, sky wrote: > ...
8 years, 6 months ago (2012-06-06 16:43:59 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/49006
8 years, 6 months ago (2012-06-06 16:44:23 UTC) #33
commit-bot: I haz the power
Try job failure for 10458018-49006 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-06 17:06:40 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10458018/51004
8 years, 6 months ago (2012-06-06 17:24:41 UTC) #35
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 19:30:18 UTC) #36
Change committed as 140812

Powered by Google App Engine
This is Rietveld 408576698