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

Issue 2866023: Linux: delete the unencrypted login database file after a successful password migration. (Closed)

Created:
10 years, 6 months ago by Mike Mammarella
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Linux: delete the unencrypted login database file after a successful password store migration, since otherwise fragments of password data may be left in it. BUG=25404 TEST=the "Login Data" file should get deleted and recreated from scratch after migration Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51094

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -78 lines) Patch
M app/sql/meta_table.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M app/sql/meta_table.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/password_manager/login_database.h View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/login_database.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_default.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 1 2 7 chunks +50 lines, -74 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Mike Mammarella
10 years, 6 months ago (2010-06-25 02:22:31 UTC) #1
Evan Martin
http://codereview.chromium.org/2866023/diff/1/2 File app/sql/meta_table.cc (right): http://codereview.chromium.org/2866023/diff/1/2#newcode49 app/sql/meta_table.cc:49: db_ = NULL; don't you need to free this? ...
10 years, 6 months ago (2010-06-25 02:31:57 UTC) #2
Mike Mammarella
http://codereview.chromium.org/2866023/diff/1/2 File app/sql/meta_table.cc (right): http://codereview.chromium.org/2866023/diff/1/2#newcode49 app/sql/meta_table.cc:49: db_ = NULL; On 2010/06/25 02:31:57, Evan Martin wrote: ...
10 years, 6 months ago (2010-06-25 03:59:12 UTC) #3
Paweł Hajdan Jr.
Drive-by with a test question. Please let me take another look before you commit. http://codereview.chromium.org/2866023/diff/1/8 ...
10 years, 6 months ago (2010-06-25 06:36:09 UTC) #4
Mike Mammarella
http://codereview.chromium.org/2866023/diff/1/8 File chrome/browser/password_manager/password_store_x_unittest.cc (right): http://codereview.chromium.org/2866023/diff/1/8#newcode295 chrome/browser/password_manager/password_store_x_unittest.cc:295: if (temp_dir_.IsValid()) On 2010/06/25 06:36:09, Paweł Hajdan Jr. wrote: ...
10 years, 6 months ago (2010-06-25 16:45:19 UTC) #5
Paweł Hajdan Jr.
http://codereview.chromium.org/2866023/diff/1/8 File chrome/browser/password_manager/password_store_x_unittest.cc (right): http://codereview.chromium.org/2866023/diff/1/8#newcode295 chrome/browser/password_manager/password_store_x_unittest.cc:295: if (temp_dir_.IsValid()) On 2010/06/25 16:45:19, Mike Mammarella wrote: > ...
10 years, 6 months ago (2010-06-25 16:51:13 UTC) #6
Mike Mammarella
http://codereview.chromium.org/2866023/diff/1/8 File chrome/browser/password_manager/password_store_x_unittest.cc (right): http://codereview.chromium.org/2866023/diff/1/8#newcode295 chrome/browser/password_manager/password_store_x_unittest.cc:295: if (temp_dir_.IsValid()) On 2010/06/25 16:51:13, Paweł Hajdan Jr. wrote: ...
10 years, 6 months ago (2010-06-25 18:40:45 UTC) #7
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM.
10 years, 6 months ago (2010-06-25 19:35:03 UTC) #8
Mike Mammarella
Evan: ping
10 years, 6 months ago (2010-06-25 22:15:30 UTC) #9
Evan Martin
LGTM with one request http://codereview.chromium.org/2866023/diff/14001/15004 File chrome/browser/password_manager/login_database.h (right): http://codereview.chromium.org/2866023/diff/14001/15004#newcode72 chrome/browser/password_manager/login_database.h:72: // Deletes the login database ...
10 years, 5 months ago (2010-06-28 23:18:37 UTC) #10
Mike Mammarella
10 years, 5 months ago (2010-06-29 00:31:57 UTC) #11
http://codereview.chromium.org/2866023/diff/14001/15004
File chrome/browser/password_manager/login_database.h (right):

http://codereview.chromium.org/2866023/diff/14001/15004#newcode72
chrome/browser/password_manager/login_database.h:72: // Deletes the login
database file on disk, and creates a new, empty database.
On 2010/06/28 23:18:37, Evan Martin wrote:
> Can you rename the function to reflect the latter behavior as well?  (E.g.
> "recreate" maybe.  I still think it's weird, but I understand your reasoning.)

Done.

http://codereview.chromium.org/2866023/diff/14001/15005
File chrome/browser/password_manager/password_store_default.h (right):

http://codereview.chromium.org/2866023/diff/14001/15005#newcode54
chrome/browser/password_manager/password_store_default.h:54: // Calls
DeleteDatabaseFile() on |login_db_|.
On 2010/06/28 23:18:37, Evan Martin wrote:
> This comment is superfluous.

Done.

Powered by Google App Engine
This is Rietveld 408576698