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

Issue 151176: Implement Add and Update for PasswordStoreMac.... (Closed)

Created:
11 years, 5 months ago by stuartmorgan
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews_googlegroups.com, John Grabowski, Ben Goodger (Google)
Visibility:
Public.

Description

Implement Add and Update for PasswordStoreMac. Modify LoginDatabase slightly to give PasswordStoreMac enough information to do the right thing. Add creator code for keychain items we create, and unit tests to make sure. BUG=11745 TEST=Visit a site for which you have a password in the Keychain. Type your username, unfocus the field, and then log in with the filled password. Log out, return to the login page, and the username and password should now autofill without user interaction.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -45 lines) Patch
M chrome/browser/keychain_mock_mac.h View 2 4 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/keychain_mock_mac.cc View 2 8 chunks +77 lines, -35 lines 2 comments Download
M chrome/browser/password_manager/login_database.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/login_database.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/password_manager/login_database_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 3 4 chunks +35 lines, -3 lines 2 comments Download
M chrome/browser/password_manager/password_store_mac_internal.h View 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac_unittest.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/common/sqlite_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/sqlite_utils.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
stuartmorgan
11 years, 5 months ago (2009-07-01 23:14:01 UTC) #1
Mark Mentovai
This is substantially LGTM, there are just a couple of small things. http://codereview.chromium.org/151176/diff/10/20 File chrome/browser/keychain_mock_mac.cc ...
11 years, 5 months ago (2009-07-01 23:49:31 UTC) #2
stuartmorgan
http://codereview.chromium.org/151176/diff/10/20 File chrome/browser/keychain_mock_mac.cc (right): http://codereview.chromium.org/151176/diff/10/20#newcode139 Line 139: *(static_cast<OSType*>(data)) = value; On 2009/07/01 23:49:31, Mark Mentovai ...
11 years, 5 months ago (2009-07-02 00:56:49 UTC) #3
Mark Mentovai
11 years, 5 months ago (2009-07-02 03:03:29 UTC) #4
LGTM

http://codereview.chromium.org/151176/diff/32/42
File chrome/browser/keychain_mock_mac.cc (right):

http://codereview.chromium.org/151176/diff/32/42#newcode87
Line 87: NOTREACHED();
Do we really need the NOTREACHED?  You documented the function as returning NULL
when this happens.

http://codereview.chromium.org/151176/diff/32/42#newcode357
Line 357: if (*data == 0) {
Oh yeah.  Much clearer this way.

http://codereview.chromium.org/151176/diff/32/36
File chrome/browser/password_manager/password_store_mac.cc (right):

http://codereview.chromium.org/151176/diff/32/36#newcode559
Line 559: if (result == errSecDuplicateItem) {
This ought to be |else if| now.

http://codereview.chromium.org/151176/diff/32/36#newcode637
Line 637: return (result == noErr);
Parens aren't necessary here or in the preceding function.  I don't think they
improve clarity, but if you do, you can keep them.

Powered by Google App Engine
This is Rietveld 408576698