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

Issue 207643002: Create new Autofill tables as part of DB migration. (Closed)

Created:
6 years, 9 months ago by Ilya Sherman
Modified:
6 years, 9 months ago
Reviewers:
Peter Kasting, Jói
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Create new Autofill tables as part of DB migration. Currently, migration from a version 20 database to the latest version fails, because the migration code assumes that the autofill_dates table exists, but it was not present at version 20, and is never created during migration. This CL fixes the migration path to be more careful and more sane. BUG=none TEST=unit_tests R=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259166

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Add a comment #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -71 lines) Patch
M chrome/browser/webdata/keyword_table.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/keyword_table.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/webdata/logins_table.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/logins_table.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/webdata/web_apps_table.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_apps_table.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/webdata/web_intents_table.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_intents_table.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 6 chunks +81 lines, -6 lines 0 comments Download
M components/signin/core/browser/webdata/token_service_table.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/browser/webdata/token_service_table.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
A + components/test/data/web_database/version_20.sql View 1 chunk +10 lines, -15 lines 0 comments Download
M components/webdata/common/web_database.cc View 1 2 4 chunks +16 lines, -12 lines 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M components/webdata/common/web_database_table.h View 1 chunk +6 lines, -5 lines 0 comments Download
M components/webdata/common/web_database_table.cc View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Ilya Sherman
6 years, 9 months ago (2014-03-21 04:45:33 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/207643002/diff/1/components/webdata/common/web_database.cc File components/webdata/common/web_database.cc (right): https://codereview.chromium.org/207643002/diff/1/components/webdata/common/web_database.cc#newcode115 components/webdata/common/web_database.cc:115: // Create the desired SQL tables if they ...
6 years, 9 months ago (2014-03-21 18:20:12 UTC) #2
Ilya Sherman
+Jói for OWNERS review of everything outside of //components/webdata (though, of course, feel free to ...
6 years, 9 months ago (2014-03-21 23:12:47 UTC) #3
Jói
LGTM
6 years, 9 months ago (2014-03-24 19:33:44 UTC) #4
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 19:38:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/207643002/40001
6 years, 9 months ago (2014-03-24 19:39:08 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 19:46:06 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-24 19:46:06 UTC) #8
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 19:50:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/207643002/40001
6 years, 9 months ago (2014-03-24 19:51:19 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 01:58:10 UTC) #11
commit-bot: I haz the power
Failed to apply patch for components/signin/core/webdata/token_service_table.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 9 months ago (2014-03-25 01:58:10 UTC) #12
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-25 04:41:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/207643002/50001
6 years, 9 months ago (2014-03-25 04:41:31 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 06:38:49 UTC) #15
Message was sent while issue was closed.
Change committed as 259166

Powered by Google App Engine
This is Rietveld 408576698