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

Issue 11867025: Download autocheckout whitelist and enable autocheckout for whitelisted sites only. (Closed)

Created:
7 years, 11 months ago by benquan
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Visibility:
Public.

Description

Download autocheckout whitelist and enable autocheckout for whitelisted sites only. BUG=170945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181800

Patch Set 1 #

Total comments: 38

Patch Set 2 : User timer to schedule downloads. #

Patch Set 3 : fix unittestwq #

Total comments: 2

Patch Set 4 : revert code change for manual testing/:wq. #

Total comments: 88

Patch Set 5 : Address comments. #

Patch Set 6 : update FormStructure constructor and stop friending unittest class from WhitelistManager. #

Patch Set 7 : fix memory leak in AutofillMetricsTest. #

Total comments: 42

Patch Set 8 : Fix Ilya's review comments, mostly styling. #

Total comments: 2

Patch Set 9 : change WhitelistManager back to inherit from base::SupportsUserData::Data #

Patch Set 10 : Pass autocheckout url prefix to FormStructure's constructor. #

Total comments: 32

Patch Set 11 : Fix lints. #

Patch Set 12 : gclient runhooks #

Patch Set 13 : last patch #

Patch Set 14 : Fix a build error. #

Patch Set 15 : Patch the fix that was not picked up in the last git commit. #

Patch Set 16 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -139 lines) Patch
A chrome/browser/autofill/autocheckout/whitelist_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/autofill/autocheckout/whitelist_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +156 lines, -0 lines 0 comments Download
A chrome/browser/autofill/autocheckout/whitelist_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autocheckout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_download_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_merge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_metrics.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/autofill/form_structure.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/autofill/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +21 lines, -23 lines 0 comments Download
M chrome/browser/autofill/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 48 chunks +58 lines, -60 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 31 chunks +31 lines, -31 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
benquan
PTAL
7 years, 11 months ago (2013-01-18 20:41:05 UTC) #1
ahutter
https://codereview.chromium.org/11867025/diff/1/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/1/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode23 chrome/browser/autofill/autocheckout/whitelist_manager.cc:23: const int kWhitelistDownloadBackoffDelay = 86400; Can you add a ...
7 years, 11 months ago (2013-01-19 02:07:16 UTC) #2
benquan
I changed to use timer to schedule downloads. PTAL It works fine when run chrome ...
7 years, 11 months ago (2013-01-23 23:50:52 UTC) #3
benquan
+Ilya
7 years, 11 months ago (2013-01-23 23:51:58 UTC) #4
Ilya Sherman
I'm assuming this isn't yet ready for a full review from me -- let me ...
7 years, 11 months ago (2013-01-24 06:36:48 UTC) #5
benquan
Hi Ilya, this CL is ready for you to review. https://codereview.chromium.org/11867025/diff/13001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): https://codereview.chromium.org/11867025/diff/13001/chrome/browser/autofill/autofill_manager.cc#newcode84 ...
7 years, 11 months ago (2013-01-24 18:30:42 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://chromiumcodereview.appspot.com/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode11 chrome/browser/autofill/autocheckout/whitelist_manager.cc:11: #include "base/supports_user_data.h" nit: Remove this; it's already present in ...
7 years, 11 months ago (2013-01-24 22:01:55 UTC) #7
benquan
PTAL https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode11 chrome/browser/autofill/autocheckout/whitelist_manager.cc:11: #include "base/supports_user_data.h" On 2013/01/24 22:01:55, Ilya Sherman wrote: ...
7 years, 11 months ago (2013-01-25 00:55:30 UTC) #8
Ilya Sherman
https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode27 chrome/browser/autofill/autocheckout/whitelist_manager.cc:27: const int kInitialDownloadDelaySeconds = 3; On 2013/01/25 00:55:31, benquan ...
7 years, 11 months ago (2013-01-25 01:22:40 UTC) #9
benquan
https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/14015/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode60 chrome/browser/autofill/autocheckout/whitelist_manager.cc:60: bool WhitelistManager::ScheduleDownload(int interval_seconds) { On 2013/01/25 01:22:40, Ilya Sherman ...
7 years, 11 months ago (2013-01-26 02:05:53 UTC) #10
Ilya Sherman
Benquan, please ping this thread once you update a revised patch set. Thanks.
7 years, 11 months ago (2013-01-27 00:32:43 UTC) #11
Ilya Sherman
https://chromiumcodereview.appspot.com/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://chromiumcodereview.appspot.com/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode131 chrome/browser/autofill/autocheckout/whitelist_manager.cc:131: for (std::vector<std::string>::iterator line = lines.begin(); nit: Can this be ...
7 years, 10 months ago (2013-01-28 23:21:39 UTC) #12
benquan
PTAL https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode131 chrome/browser/autofill/autocheckout/whitelist_manager.cc:131: for (std::vector<std::string>::iterator line = lines.begin(); On 2013/01/28 23:21:39, ...
7 years, 10 months ago (2013-01-29 03:28:30 UTC) #13
Ilya Sherman
https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h File chrome/browser/autofill/autocheckout/whitelist_manager.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h#newcode32 chrome/browser/autofill/autocheckout/whitelist_manager.h:32: public base::RefCounted<WhitelistManager> { On 2013/01/29 03:28:30, benquan wrote: > ...
7 years, 10 months ago (2013-01-29 05:56:35 UTC) #14
Ilya Sherman
https://chromiumcodereview.appspot.com/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h File chrome/browser/autofill/autocheckout/whitelist_manager.h (right): https://chromiumcodereview.appspot.com/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h#newcode32 chrome/browser/autofill/autocheckout/whitelist_manager.h:32: public base::RefCounted<WhitelistManager> { On 2013/01/29 05:56:35, Ilya Sherman wrote: ...
7 years, 10 months ago (2013-01-29 06:15:09 UTC) #15
benquan
https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h File chrome/browser/autofill/autocheckout/whitelist_manager.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/autocheckout/whitelist_manager.h#newcode32 chrome/browser/autofill/autocheckout/whitelist_manager.h:32: public base::RefCounted<WhitelistManager> { On 2013/01/29 06:15:09, Ilya Sherman wrote: ...
7 years, 10 months ago (2013-01-30 00:48:41 UTC) #16
Ilya Sherman
https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h#newcode48 chrome/browser/autofill/form_structure.h:48: FormStructure(const FormData& form, bool autocheckout_enabled); On 2013/01/30 00:48:42, benquan ...
7 years, 10 months ago (2013-01-30 00:52:48 UTC) #17
benquan
https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h#newcode48 chrome/browser/autofill/form_structure.h:48: FormStructure(const FormData& form, bool autocheckout_enabled); On 2013/01/30 00:52:48, Ilya ...
7 years, 10 months ago (2013-01-30 18:39:00 UTC) #18
Ilya Sherman
https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h#newcode48 chrome/browser/autofill/form_structure.h:48: FormStructure(const FormData& form, bool autocheckout_enabled); On 2013/01/30 18:39:00, benquan ...
7 years, 10 months ago (2013-01-30 21:05:31 UTC) #19
benquan
PTAL https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://codereview.chromium.org/11867025/diff/29001/chrome/browser/autofill/form_structure.h#newcode48 chrome/browser/autofill/form_structure.h:48: FormStructure(const FormData& form, bool autocheckout_enabled); On 2013/01/30 21:05:31, ...
7 years, 10 months ago (2013-01-31 03:21:23 UTC) #20
Ilya Sherman
LGTM with nits: https://chromiumcodereview.appspot.com/11867025/diff/32025/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://chromiumcodereview.appspot.com/11867025/diff/32025/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode12 chrome/browser/autofill/autocheckout/whitelist_manager.cc:12: #include "base/supports_user_data.h" nit: This is already ...
7 years, 10 months ago (2013-01-31 05:01:29 UTC) #21
benquan
https://codereview.chromium.org/11867025/diff/32025/chrome/browser/autofill/autocheckout/whitelist_manager.cc File chrome/browser/autofill/autocheckout/whitelist_manager.cc (right): https://codereview.chromium.org/11867025/diff/32025/chrome/browser/autofill/autocheckout/whitelist_manager.cc#newcode12 chrome/browser/autofill/autocheckout/whitelist_manager.cc:12: #include "base/supports_user_data.h" On 2013/01/31 05:01:29, Ilya Sherman wrote: > ...
7 years, 10 months ago (2013-01-31 23:17:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/33006
7 years, 10 months ago (2013-01-31 23:57:44 UTC) #23
commit-bot: I haz the power
Failed to trigger a try job on android_clang_dbg HTTP Error 400: Bad Request
7 years, 10 months ago (2013-02-01 01:30:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/35009
7 years, 10 months ago (2013-02-01 01:32:39 UTC) #25
commit-bot: I haz the power
Failed to trigger a try job on android_clang_dbg HTTP Error 400: Bad Request
7 years, 10 months ago (2013-02-01 03:18:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/50003
7 years, 10 months ago (2013-02-01 03:19:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/50003
7 years, 10 months ago (2013-02-01 20:03:00 UTC) #28
commit-bot: I haz the power
Presubmit check for 11867025-50003 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-02-01 20:03:12 UTC) #29
benquan
Hi sky, Need your approval for the .gypi change. Thanks, Benquan
7 years, 10 months ago (2013-02-01 20:19:05 UTC) #30
sky
*gyp* LGTM
7 years, 10 months ago (2013-02-01 20:32:00 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/50003
7 years, 10 months ago (2013-02-01 22:21:24 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/50003
7 years, 10 months ago (2013-02-02 02:22:24 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/50003
7 years, 10 months ago (2013-02-03 23:36:24 UTC) #34
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autofill/autofill_manager_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-03 23:36:30 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benquan@chromium.org/11867025/59001
7 years, 10 months ago (2013-02-11 21:06:14 UTC) #36
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 01:06:25 UTC) #37
Message was sent while issue was closed.
Change committed as 181800

Powered by Google App Engine
This is Rietveld 408576698