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

Issue 49253005: Fetch extension blacklist states from SafeBrowsing server (Closed)

Created:
7 years, 1 month ago by Oleg Eterevsky
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Add proto. #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Add unit tests, fix bugs. #

Total comments: 56

Patch Set 10 : Addressing comments. #

Patch Set 11 : Rebase #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 31

Patch Set 15 : Fix thread checks, add URLRequestContext. #

Total comments: 6

Patch Set 16 : #

Patch Set 17 : #

Total comments: 2

Patch Set 18 : #

Patch Set 19 : Minor fixes. #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : Fix tests. #

Patch Set 23 : #

Patch Set 24 : Rebase #

Patch Set 25 : Add safe browsing proto dependency. #

Patch Set 26 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+769 lines, -66 lines) Patch
M chrome/browser/extensions/app_process_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/blacklist.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +25 lines, -13 lines 0 comments Download
M chrome/browser/extensions/blacklist.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +53 lines, -10 lines 0 comments Download
A chrome/browser/extensions/blacklist_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/extensions/blacklist_state_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/extensions/blacklist_state_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +150 lines, -0 lines 0 comments Download
A chrome/browser/extensions/blacklist_state_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +86 lines, -0 lines 0 comments Download
M chrome/browser/extensions/blacklist_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +156 lines, -14 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/fake_safe_browsing_database_manager.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/fake_safe_browsing_database_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_blacklist.h View 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/extensions/test_blacklist.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/browser/extensions/test_blacklist_state_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/test_blacklist_state_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.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/safe_browsing/safe_browsing_service.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -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 16 17 18 19 20 21 22 23 24 25 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/common/safe_browsing/crx_info.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Oleg Eterevsky
7 years, 1 month ago (2013-11-14 19:46:03 UTC) #1
not at google - send to devlin
Sorry it took me so long to get to this. https://codereview.chromium.org/49253005/diff/200001/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/49253005/diff/200001/chrome/browser/extensions/blacklist.cc#newcode158 ...
7 years, 1 month ago (2013-11-18 17:03:49 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/49253005/diff/200001/chrome/browser/extensions/blacklist_fetcher.h File chrome/browser/extensions/blacklist_fetcher.h (right): https://codereview.chromium.org/49253005/diff/200001/chrome/browser/extensions/blacklist_fetcher.h#newcode43 chrome/browser/extensions/blacklist_fetcher.h:43: std::map<const net::URLFetcher*, std::string> requests_; also, I think you need ...
7 years, 1 month ago (2013-11-18 18:21:28 UTC) #3
Oleg Eterevsky
https://chromiumcodereview.appspot.com/49253005/diff/200001/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://chromiumcodereview.appspot.com/49253005/diff/200001/chrome/browser/extensions/blacklist.cc#newcode158 chrome/browser/extensions/blacklist.cc:158: Blacklist::Blacklist(ExtensionPrefs* prefs) : fetcher_() { On 2013/11/18 17:03:49, kalman ...
7 years, 1 month ago (2013-11-20 12:58:44 UTC) #4
Oleg Eterevsky
7 years, 1 month ago (2013-11-20 13:00:21 UTC) #5
not at google - send to devlin
Just the question about the base::Owned thing. I do find Blacklist::OnBlacklistStateReceived rather hard to read ...
7 years, 1 month ago (2013-11-20 23:44:47 UTC) #6
mattm
I feel like I'm missing some background here. Can you set a commit description on ...
7 years, 1 month ago (2013-11-21 00:04:01 UTC) #7
Oleg Eterevsky
Matt, sorry for not linking the issue, thought it was in the description. Add the ...
7 years, 1 month ago (2013-11-21 16:53:13 UTC) #8
not at google - send to devlin
Responding to comments; ping when the ExtensionServiceTests are fixed. If I haven't convinced you at ...
7 years, 1 month ago (2013-11-21 18:42:57 UTC) #9
Oleg Eterevsky
On 2013/11/21 18:42:57, kalman wrote: > Responding to comments; ping when the ExtensionServiceTests are fixed. ...
7 years, 1 month ago (2013-11-22 16:20:25 UTC) #10
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc#newcode309 chrome/browser/extensions/blacklist.cc:309: // is returned, so no need to increment ...
7 years ago (2013-11-25 18:48:24 UTC) #11
mattm
https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc#newcode281 chrome/browser/extensions/blacklist.cc:281: state_fetcher_->Request( Have you tested this in a debug build? ...
7 years ago (2013-11-25 21:48:55 UTC) #12
Oleg Eterevsky
https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://chromiumcodereview.appspot.com/49253005/diff/560001/chrome/browser/extensions/blacklist.cc#newcode281 chrome/browser/extensions/blacklist.cc:281: state_fetcher_->Request( On 2013/11/25 21:48:55, mattm wrote: > Have you ...
7 years ago (2013-11-27 14:07:37 UTC) #13
mattm
https://codereview.chromium.org/49253005/diff/560001/chrome/browser/extensions/blacklist.h File chrome/browser/extensions/blacklist.h (right): https://codereview.chromium.org/49253005/diff/560001/chrome/browser/extensions/blacklist.h#newcode62 chrome/browser/extensions/blacklist.h:62: NOT_BLACKLISTED = 0, It's pretty confusing that 0 is ...
7 years ago (2013-12-03 02:55:45 UTC) #14
Oleg Eterevsky
https://codereview.chromium.org/49253005/diff/560001/chrome/browser/extensions/blacklist.h File chrome/browser/extensions/blacklist.h (right): https://codereview.chromium.org/49253005/diff/560001/chrome/browser/extensions/blacklist.h#newcode62 chrome/browser/extensions/blacklist.h:62: NOT_BLACKLISTED = 0, On 2013/12/03 02:55:45, mattm wrote: > ...
7 years ago (2013-12-04 10:45:10 UTC) #15
not at google - send to devlin
This code (BlacklistStateFetcher etc) should be in extensions not safebrowsing. Safebrowsing happens to be the ...
7 years ago (2013-12-04 17:59:52 UTC) #16
mattm
On 2013/12/04 17:59:52, kalman wrote: > This code (BlacklistStateFetcher etc) should be in extensions not ...
7 years ago (2013-12-10 11:09:40 UTC) #17
Oleg Eterevsky
Based of Ben's advice I decided to to move Fetcher code to SafeBrowsing. https://codereview.chromium.org/49253005/diff/560001/chrome/browser/extensions/blacklist.h File ...
7 years ago (2013-12-10 17:10:43 UTC) #18
not at google - send to devlin
On 2013/12/10 17:10:43, Oleg wrote: > Based of Ben's advice I decided to to move ...
7 years ago (2013-12-10 17:16:01 UTC) #19
olege
On Tue, Dec 10, 2013 at 9:10 PM, <oleg@chromium.org> wrote: > Based of Ben's advice ...
7 years ago (2013-12-10 17:16:10 UTC) #20
mattm
lgtm https://codereview.chromium.org/49253005/diff/650001/chrome/browser/extensions/blacklist_state_fetcher.h File chrome/browser/extensions/blacklist_state_fetcher.h (right): https://codereview.chromium.org/49253005/diff/650001/chrome/browser/extensions/blacklist_state_fetcher.h#newcode15 chrome/browser/extensions/blacklist_state_fetcher.h:15: #include "chrome/common/safe_browsing/crx_info.pb.h" Does this need to be in ...
7 years ago (2013-12-10 22:58:49 UTC) #21
Oleg Eterevsky
Thanks a lot for review! https://codereview.chromium.org/49253005/diff/650001/chrome/browser/extensions/blacklist_state_fetcher.h File chrome/browser/extensions/blacklist_state_fetcher.h (right): https://codereview.chromium.org/49253005/diff/650001/chrome/browser/extensions/blacklist_state_fetcher.h#newcode15 chrome/browser/extensions/blacklist_state_fetcher.h:15: #include "chrome/common/safe_browsing/crx_info.pb.h" On 2013/12/10 ...
7 years ago (2013-12-11 13:02:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/670001
7 years ago (2013-12-11 13:03:51 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=201894
7 years ago (2013-12-11 13:40:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/690001
7 years ago (2013-12-11 13:57:36 UTC) #25
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40623
7 years ago (2013-12-11 14:32:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/710001
7 years ago (2013-12-11 16:01:42 UTC) #27
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40643
7 years ago (2013-12-11 16:23:04 UTC) #28
Oleg Eterevsky
Hi! Could you please review the minor changes in the following files? chrome/browser/sync/test/integration/sync_extension_helper.ccchrome/browser/ui/panels/base_panel_browser_test.cc Thanks.
7 years ago (2013-12-11 16:45:20 UTC) #29
Nicolas Zea
sync LGTM
7 years ago (2013-12-11 23:06:12 UTC) #30
jennb
LGTM for panels.
7 years ago (2013-12-12 02:11:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/710001
7 years ago (2013-12-12 14:37:20 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=202652
7 years ago (2013-12-12 15:12:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/760001
7 years ago (2013-12-15 12:56:18 UTC) #34
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204352
7 years ago (2013-12-15 13:08:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/800001
7 years ago (2013-12-16 13:03:01 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204685
7 years ago (2013-12-16 13:31:47 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oleg@chromium.org/49253005/820001
7 years ago (2013-12-17 13:03:13 UTC) #38
commit-bot: I haz the power
7 years ago (2013-12-17 17:49:16 UTC) #39
Message was sent while issue was closed.
Change committed as 241316

Powered by Google App Engine
This is Rietveld 408576698