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

Issue 506047: Return a list of changed from WebDatabase::RemoveFormElementsAddedBetween() (Closed)

Created:
11 years ago by skrul
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, DaveMoore, Paweł Hajdan Jr.
Visibility:
Public.

Description

Return a list of changed from WebDatabase::RemoveFormElementsAddedBetween() This changes add a list of AutofillChange out parameter to the RemoveFormElementsAddedBetween() method in order to communicate exactly what happened to the caller. This method may only update some autofill entries (by removing use timestamps that fall in the specified time range) or completely remove the autofill entry (if all the use timestamps fall between the specified time range). For sync, we need to know the difference. This change also required some new testing method on WebDatabase to make it possible to add new autofill entries with specific timestamps. This is needed to create a reliable test that requires entries to be added at different times. If there is a better way to do this, please let me know. The next change will add the notifications to the WebDataService. BUG=30169 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34889

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address test related comments. #

Total comments: 14

Patch Set 3 : Address review comments. #

Patch Set 4 : Remove unneeded include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -39 lines) Patch
M chrome/browser/webdata/autofill_change.h View 2 1 chunk +1 line, -3 lines 0 comments Download
A chrome/browser/webdata/autofill_change.cc View 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/webdata/autofill_entry.h View 2 1 chunk +1 line, -3 lines 0 comments Download
A chrome/browser/webdata/autofill_entry.cc View 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/webdata/web_database.h View 4 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 9 chunks +48 lines, -15 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 2 13 chunks +94 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
skrul
11 years ago (2009-12-17 01:02:47 UTC) #1
Paweł Hajdan Jr.
Drive-by with test-related comments. http://codereview.chromium.org/506047/diff/1/5 File chrome/browser/webdata/web_database_unittest.cc (right): http://codereview.chromium.org/506047/diff/1/5#newcode508 chrome/browser/webdata/web_database_unittest.cc:508: for (uint i = 0; ...
11 years ago (2009-12-17 06:50:57 UTC) #2
skrul
Thanks for the drive by :) http://codereview.chromium.org/506047/diff/1/5 File chrome/browser/webdata/web_database_unittest.cc (right): http://codereview.chromium.org/506047/diff/1/5#newcode508 chrome/browser/webdata/web_database_unittest.cc:508: for (uint i ...
11 years ago (2009-12-17 18:34:33 UTC) #3
Paweł Hajdan Jr.
Tests LGTM, thanks.
11 years ago (2009-12-17 18:39:19 UTC) #4
James Hawkins
http://codereview.chromium.org/506047/diff/3001/3002 File chrome/browser/webdata/autofill_change.cc (right): http://codereview.chromium.org/506047/diff/3001/3002#newcode6 chrome/browser/webdata/autofill_change.cc:6: #include "chrome/browser/webdata/autofill_change.h" autofill_change.h should be the first include in ...
11 years ago (2009-12-17 20:09:25 UTC) #5
skrul
http://codereview.chromium.org/506047/diff/3001/3002 File chrome/browser/webdata/autofill_change.cc (right): http://codereview.chromium.org/506047/diff/3001/3002#newcode6 chrome/browser/webdata/autofill_change.cc:6: #include "chrome/browser/webdata/autofill_change.h" On 2009/12/17 20:09:25, James Hawkins wrote: > ...
11 years ago (2009-12-17 20:52:32 UTC) #6
James Hawkins
11 years ago (2009-12-17 21:02:57 UTC) #7
> This exists temporarily to allow me to put only the API change in this CL and
> finish the implementation in the next CL.  I can make this CL larger and
include
> the additional changes here if you'd like.
> 

No, that's fine.  LGTM

Powered by Google App Engine
This is Rietveld 408576698