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

Issue 600873002: Order returning profiles and card by descending date_modified (Closed)

Created:
6 years, 3 months ago by sdefresne
Modified:
6 years, 2 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Order returning profiles and card by descending date_modified The unittests (WebDataServiceAutofillTest.CreditUpdate) assume that the newly modified credit card information will be the first one returned. Since it has the highest date_modified value, this imply a descending ordering of the cards when iterating. The unittests were previously flaky as the precision of date_modified is not high enough and both card ended up with the same value most of the time. When the test was taking slightly more time to run, then the modified car would end up last and the test would fail. BUG=None Committed: https://crrev.com/32977338f1cd4b588d4244e49860f35bdda7c3a6 Cr-Commit-Position: refs/heads/master@{#296623}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M components/autofill/core/browser/webdata/autofill_table.cc View 2 chunks +2 lines, -2 lines 2 comments Download

Messages

Total messages: 16 (4 generated)
sdefresne
Please have a look. Example of a test failure (internal bot): WebDataServiceAutofillTest.CreditUpdate: components/autofill/core/browser/webdata/web_data_service_unittest.cc:479: Failure Value ...
6 years, 3 months ago (2014-09-24 15:03:31 UTC) #2
sdefresne
+ jimblackler: can you take a look as you know autofill?
6 years, 3 months ago (2014-09-24 15:12:51 UTC) #4
Evan Stade
ah, this is my fault, sorry. This change also affects the ordering in the UI, ...
6 years, 2 months ago (2014-09-24 22:03:59 UTC) #5
Ilya Sherman
Could you please also update AutofillTable::GetAutofillProfiles()? LGTM with that change. Thanks.
6 years, 2 months ago (2014-09-24 23:08:07 UTC) #6
Evan Stade
On 2014/09/24 23:08:07, Ilya Sherman wrote: > Could you please also update AutofillTable::GetAutofillProfiles()? LGTM with ...
6 years, 2 months ago (2014-09-24 23:20:24 UTC) #7
Ilya Sherman
On 2014/09/24 23:20:24, Evan Stade wrote: > On 2014/09/24 23:08:07, Ilya Sherman wrote: > > ...
6 years, 2 months ago (2014-09-24 23:40:06 UTC) #8
Evan Stade
https://codereview.chromium.org/600873002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/600873002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc#newcode933 components/autofill/core/browser/webdata/autofill_table.cc:933: "ORDER BY date_modified DESC, guid")); I meant here, not ...
6 years, 2 months ago (2014-09-25 00:00:06 UTC) #10
Ilya Sherman
https://codereview.chromium.org/600873002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/600873002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc#newcode933 components/autofill/core/browser/webdata/autofill_table.cc:933: "ORDER BY date_modified DESC, guid")); On 2014/09/25 00:00:06, Evan ...
6 years, 2 months ago (2014-09-25 00:08:55 UTC) #11
Evan Stade
I'll just go ahead and CQ now since it's flakily breaking some bots.
6 years, 2 months ago (2014-09-25 00:20:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600873002/1
6 years, 2 months ago (2014-09-25 00:21:57 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1) as f2745ca4053e2baed533b08ad51b238d143711b0
6 years, 2 months ago (2014-09-25 02:05:39 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 02:06:22 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/32977338f1cd4b588d4244e49860f35bdda7c3a6
Cr-Commit-Position: refs/heads/master@{#296623}

Powered by Google App Engine
This is Rietveld 408576698