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

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed)

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

Description

Implement "Autofill form data" import for Firefox This patches adds support to import autofill form data from Firefox. Firefox stores form data in formhistory.sqlite file and currently Chrome's firefox importer doesn't import data from it. With this patch, "Autofill form data" option is available in import menu and allows user to import form data from Firefox. The imported form data is stored in autofill table and is then used in forms for autocomplete. BUG=59087 Committed: https://crrev.com/884eafca142af3f8e8ed252048edeeb5c3d25319 Cr-Commit-Position: refs/heads/master@{#293381}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added test case #

Total comments: 57

Patch Set 3 : Review feedback (nit fixes, ipc msg changes) #

Total comments: 11

Patch Set 4 : Review feedback (nit fixes) #

Patch Set 5 : Updated test case and binary file #

Total comments: 4

Patch Set 6 : Updated test cases and binary file #

Total comments: 2

Patch Set 7 : Review feedback (add test case for non-ASCII characters) #

Total comments: 7

Patch Set 8 : Review feedback (nit fix to remove public from struct) #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Total comments: 2

Patch Set 11 : Remove IPC_STRUCTS_TRAITS changes, Add rebase changes #

Total comments: 2

Patch Set 12 : Review feedback (simplify Read method) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -35 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.h View 5 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/importer/firefox_importer_browsertest.cc View 1 2 3 4 5 6 5 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/importer/importer_list.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/importer/in_process_importer_bridge.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/importer/in_process_importer_bridge.cc View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/importer/profile_writer.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/import_data_overlay.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/import_data_overlay.js View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/import_data_handler.cc View 1 2 3 4 5 6 3 chunks +19 lines, -13 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/importer/importer_autofill_form_data_entry.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/common/importer/importer_autofill_form_data_entry.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/importer/importer_bridge.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/importer/importer_data_types.h View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M chrome/common/importer/profile_import_process_messages.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +41 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
A + chrome/test/data/firefox_profile/formhistory.sqlite View 1 2 3 4 5 6 Binary file 0 comments Download
M chrome/utility/importer/external_process_importer_bridge.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/utility/importer/external_process_importer_bridge.cc View 1 2 chunks +28 lines, -1 line 0 comments Download
M chrome/utility/importer/firefox_importer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 1 2 3 4 5 6 3 chunks +41 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (10 generated)
Nikhil
PTAL at the changes to support importing "Autofill form data" from Firefox. [*] If you ...
6 years, 4 months ago (2014-08-18 13:50:08 UTC) #1
Nikhil
Forgot to add reviewer :/ Ilya, PTAL. Thanks!
6 years, 4 months ago (2014-08-18 13:52:03 UTC) #2
Nikhil
isherman@ - Test case added. PTAL. Thanks!
6 years, 4 months ago (2014-08-19 12:52:37 UTC) #3
Ilya Sherman
Thanks, Nikhil! I have a bunch of nits for you; but on the whole, this ...
6 years, 4 months ago (2014-08-20 05:47:42 UTC) #4
Nikhil
Ilya, Thanks for the quick review :) PTAL at my changes and responses to your ...
6 years, 4 months ago (2014-08-20 11:29:18 UTC) #5
Ilya Sherman
Thanks! https://codereview.chromium.org/480953002/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/480953002/diff/20001/chrome/app/generated_resources.grd#newcode7413 chrome/app/generated_resources.grd:7413: + Autofill form data On 2014/08/20 11:29:16, Nikhil ...
6 years, 4 months ago (2014-08-20 20:47:23 UTC) #6
Nikhil
Ilya, Thanks for the quick review! PTAL at my changes and responses to your review ...
6 years, 4 months ago (2014-08-21 07:35:37 UTC) #7
Ilya Sherman
Thanks! LG, pending the remaining test changes. Joao, can you comment on whether there should ...
6 years, 4 months ago (2014-08-22 06:11:32 UTC) #8
Nikhil
isherman@ - Thanks for taking a look at this! I've added a few more cases, ...
6 years, 4 months ago (2014-08-23 11:51:41 UTC) #9
Joao da Silva
Thanks for the heads up! There are enterprise policies for the current Import* prefs, so ...
6 years, 4 months ago (2014-08-25 18:24:33 UTC) #10
Ilya Sherman
Thanks for the pointers, Joao :) Nikhil, I've kicked off some try jobs, though I ...
6 years, 4 months ago (2014-08-25 23:50:14 UTC) #11
Nikhil
Thanks isherman@ and joaodasila@ for taking a look at this! Ilya, I've added a few ...
6 years, 3 months ago (2014-08-26 10:09:33 UTC) #12
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 3 months ago (2014-08-27 00:41:34 UTC) #13
Ilya Sherman
The CQ bit was unchecked by isherman@chromium.org
6 years, 3 months ago (2014-08-27 00:41:35 UTC) #14
Ilya Sherman
https://codereview.chromium.org/480953002/diff/100001/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): https://codereview.chromium.org/480953002/diff/100001/chrome/browser/importer/firefox_importer_browsertest.cc#newcode111 chrome/browser/importer/firefox_importer_browsertest.cc:111: {"address", "télévision@example.com"}, Hmm, I'm pretty sure that non-ASCII characters ...
6 years, 3 months ago (2014-08-27 00:42:03 UTC) #15
Nikhil
isherman@ - I've added a couple more cases. PTAL. In addition to browser_tests, I tested ...
6 years, 3 months ago (2014-08-27 12:30:10 UTC) #16
Ilya Sherman
LGTM, thanks. Let's try landing this via the CQ. If that fails, I'll try manually ...
6 years, 3 months ago (2014-08-27 22:20:00 UTC) #17
Ilya Sherman
isherman@chromium.org changed reviewers: + estade@chromium.org
6 years, 3 months ago (2014-08-27 22:20:54 UTC) #18
Ilya Sherman
+Evan for WebUI settings changes.
6 years, 3 months ago (2014-08-27 22:20:54 UTC) #19
Ilya Sherman
isherman@chromium.org changed reviewers: + msw@chromium.org, tsepez@chromium.org
6 years, 3 months ago (2014-08-27 22:22:41 UTC) #20
Ilya Sherman
+tsepez for IPC review +msw for chrome/browser/ui/browser_ui_prefs.cc
6 years, 3 months ago (2014-08-27 22:22:41 UTC) #21
Evan Stade
webui and resources lg, but question about the string https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd#newcode7398 chrome/app/generated_resources.grd:7398: ...
6 years, 3 months ago (2014-08-27 22:32:39 UTC) #22
Ilya Sherman
https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd#newcode7398 chrome/app/generated_resources.grd:7398: + Autofill form data On 2014/08/27 22:32:38, Evan Stade ...
6 years, 3 months ago (2014-08-27 22:34:55 UTC) #23
Evan Stade
On 2014/08/27 22:34:55, Ilya Sherman wrote: > https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): > > https://codereview.chromium.org/480953002/diff/120001/chrome/app/generated_resources.grd#newcode7398 ...
6 years, 3 months ago (2014-08-27 22:37:58 UTC) #24
Tom Sepez
https://codereview.chromium.org/480953002/diff/120001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/480953002/diff/120001/chrome/browser/importer/external_process_importer_client.cc#newcode275 chrome/browser/importer/external_process_importer_client.cc:275: if (autofill_form_data_.size() == total_autofill_form_data_entry_count_) What if the import process ...
6 years, 3 months ago (2014-08-27 23:10:21 UTC) #25
msw
chrome/browser/ui/browser_ui_prefs.cc lgtm
6 years, 3 months ago (2014-08-27 23:23:32 UTC) #26
Nikhil
tsepez@ - I've replied to your review comment. PTAL. Also, modified the struct as per ...
6 years, 3 months ago (2014-08-28 06:55:00 UTC) #27
Tom Sepez
The comparison == feels frail against future bugs in the utility process. You ought to ...
6 years, 3 months ago (2014-08-28 16:54:42 UTC) #28
Ilya Sherman
https://codereview.chromium.org/480953002/diff/120001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/480953002/diff/120001/chrome/browser/importer/external_process_importer_client.cc#newcode275 chrome/browser/importer/external_process_importer_client.cc:275: if (autofill_form_data_.size() == total_autofill_form_data_entry_count_) On 2014/08/28 06:54:59, Nikhil wrote: ...
6 years, 3 months ago (2014-08-30 01:30:19 UTC) #29
Tom Sepez
> FWIW, all the other importer types use "==" as the comparison. Perhaps it's > ...
6 years, 3 months ago (2014-08-30 01:43:16 UTC) #30
Nikhil
Thank you all for the quick reviews! I'm going to submit this now, after rebase ...
6 years, 3 months ago (2014-08-30 09:37:53 UTC) #31
Nikhil
Rebase patch! Going to submit this now. Ilya, if this fails to submit because of ...
6 years, 3 months ago (2014-08-30 10:41:07 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/480953002/160001
6 years, 3 months ago (2014-08-30 10:41:31 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-30 11:47:02 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/11095)
6 years, 3 months ago (2014-08-30 11:58:42 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/480953002/160001
6 years, 3 months ago (2014-08-30 12:31:02 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-30 12:36:28 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/11099)
6 years, 3 months ago (2014-08-30 12:48:49 UTC) #42
Nikhil
Rebase patch.
6 years, 3 months ago (2014-09-02 06:36:45 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/480953002/180001
6 years, 3 months ago (2014-09-02 06:37:41 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium.mac ...
6 years, 3 months ago (2014-09-02 07:33:09 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/11358)
6 years, 3 months ago (2014-09-02 07:56:46 UTC) #48
Nikhil
isherman@ - Do we need to manually submit SQLite file? mac_chromium_compile_dbg seems to fail consistently.
6 years, 3 months ago (2014-09-02 08:46:14 UTC) #49
Evan Stade
On 2014/09/02 08:46:14, Nikhil wrote: > isherman@ - Do we need to manually submit SQLite ...
6 years, 3 months ago (2014-09-02 15:54:55 UTC) #50
Ilya Sherman
Actually, what's failing is the compilation. More specifically, the linking step is failing; I've copy/pasted ...
6 years, 3 months ago (2014-09-02 20:22:37 UTC) #51
Nikhil
Ilya, please see my response to your comment. Also, Thanks for suggesting extensions for Chromium ...
6 years, 3 months ago (2014-09-03 04:36:27 UTC) #52
Ilya Sherman
On 2014/09/03 04:36:27, Nikhil wrote: > Ilya, please see my response to your comment. > ...
6 years, 3 months ago (2014-09-03 17:48:25 UTC) #53
Tom Sepez
> Option [1] sounds fine for now -- thanks. Yes, I also think that option ...
6 years, 3 months ago (2014-09-03 17:50:34 UTC) #54
Nikhil
isherman@, tsepez@ - I've updated the patch to remove IPC_STRUCT_TRAITS_* macros. Hopefully, Mac bot will ...
6 years, 3 months ago (2014-09-04 05:03:18 UTC) #56
Ilya Sherman
https://codereview.chromium.org/480953002/diff/220001/chrome/common/importer/profile_import_process_messages.h File chrome/common/importer/profile_import_process_messages.h (right): https://codereview.chromium.org/480953002/diff/220001/chrome/common/importer/profile_import_process_messages.h#newcode253 chrome/common/importer/profile_import_process_messages.h:253: return true; I think you can simplify this to ...
6 years, 3 months ago (2014-09-04 06:17:47 UTC) #57
Nikhil
On 2014/09/04 06:17:47, Ilya Sherman wrote: > https://codereview.chromium.org/480953002/diff/220001/chrome/common/importer/profile_import_process_messages.h > File chrome/common/importer/profile_import_process_messages.h (right): > > https://codereview.chromium.org/480953002/diff/220001/chrome/common/importer/profile_import_process_messages.h#newcode253 ...
6 years, 3 months ago (2014-09-04 06:22:03 UTC) #58
Nikhil
Simplified the Read() function. PTAL. I verified the changes manually and feature is working fine. ...
6 years, 3 months ago (2014-09-04 06:34:30 UTC) #59
Tom Sepez
messages LGTM.
6 years, 3 months ago (2014-09-04 17:51:25 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/480953002/240001
6 years, 3 months ago (2014-09-04 18:18:24 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/10185)
6 years, 3 months ago (2014-09-04 20:21:05 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/480953002/240001
6 years, 3 months ago (2014-09-04 22:36:32 UTC) #66
commit-bot: I haz the power
Committed patchset #12 (id:240001) as 07d10297344a4c1993aa5a713dfb03dd380837cf
6 years, 3 months ago (2014-09-05 00:37:52 UTC) #67
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:34:18 UTC) #68
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/884eafca142af3f8e8ed252048edeeb5c3d25319
Cr-Commit-Position: refs/heads/master@{#293381}

Powered by Google App Engine
This is Rietveld 408576698