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

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed)

Created:
8 years ago by not at google - send to devlin
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, Marijn Kruisselbrink
Visibility:
Public.

Description

Make Blacklist::IsBlacklist asynchronous (it will need to be for safe browsing), and unravel the knots that result from it: - Decouple it from the admin policy. - Take the other half of blacklist logic out of ExtensionPrefs and into Blacklist. - Fix bug where blacklisted extensions couldn't be re-installed (let alone re-enabled) if they get taken off the blacklist. TBR=sky@chromium.org BUG=154149, 156750 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171079

Patch Set 1 #

Total comments: 28

Patch Set 2 : asargent #

Patch Set 3 : yoz #

Patch Set 4 : fix extension_browsertest compile #

Patch Set 5 : rebase past conflict #

Patch Set 6 : rebase past conflict #2 #

Total comments: 2

Patch Set 7 : fix protector test, rebase #

Patch Set 8 : fix up all the little failures #

Patch Set 9 : comment typos #

Patch Set 10 : rebase again #

Patch Set 11 : rebase again #

Patch Set 12 : merge again #

Patch Set 13 : fix another test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1101 lines, -361 lines) Patch
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/admin_policy.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/admin_policy.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/extensions/admin_policy_unittest.cc View 3 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/extensions/blacklist.h View 1 2 3 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/extensions/blacklist.cc View 1 2 3 chunks +38 lines, -7 lines 0 comments Download
A chrome/browser/extensions/blacklist_unittest.cc View 1 2 3 4 5 6 7 1 chunk +145 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_blacklist_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +389 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 3 7 8 9 10 11 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_error_ui.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 2 chunks +36 lines, -47 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 2 chunks +79 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 7 chunks +42 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 20 chunks +168 lines, -73 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +21 lines, -96 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.h View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider_unittest.cc View 1 2 chunks +1 line, -47 lines 0 comments Download
A chrome/browser/extensions/test_blacklist.h View 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/extensions/test_blacklist.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 5 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/protector/protected_prefs_watcher_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 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 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_set.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_set.cc View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
not at google - send to devlin
yoz: doing refactoring and reviewed the original changes to Blacklist so adding you as a ...
8 years ago (2012-11-30 00:05:04 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 chrome/browser/extensions/blacklist.cc:83: } I'm thinking about moving the prefs modification stuff ...
8 years ago (2012-11-30 18:57:20 UTC) #2
asargent_no_longer_on_chrome
LGTM That's cool that we're going to use the safebrowsing system for the blacklist (this ...
8 years ago (2012-11-30 21:44:22 UTC) #3
asargent_no_longer_on_chrome
https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 chrome/browser/extensions/blacklist.cc:83: } On 2012/11/30 18:57:20, kalman wrote: > I'm thinking ...
8 years ago (2012-11-30 21:49:59 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 chrome/browser/extensions/blacklist.cc:83: } On 2012/11/30 21:49:59, Antony Sargent wrote: > On ...
8 years ago (2012-11-30 22:06:39 UTC) #5
Yoyo Zhou
On 2012/11/30 22:06:39, kalman wrote: > https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc > File chrome/browser/extensions/blacklist.cc (right): > > https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 > ...
8 years ago (2012-11-30 22:24:35 UTC) #6
asargent_no_longer_on_chrome
On 2012/11/30 22:06:39, kalman wrote: > https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc > File chrome/browser/extensions/blacklist.cc (right): > > https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 > ...
8 years ago (2012-11-30 22:27:13 UTC) #7
not at google - send to devlin
Yoyo lmk when it lgty. https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode74 chrome/browser/extensions/blacklist.cc:74: not_yet_blacklisted.begin())); On 2012/11/30 21:44:22, ...
8 years ago (2012-11-30 23:09:54 UTC) #8
asargent_no_longer_on_chrome
https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/extension_prefs.cc#newcode775 chrome/browser/extensions/extension_prefs.cc:775: new base::FundamentalValue(true)); On 2012/11/30 23:09:54, kalman wrote: > On ...
8 years ago (2012-11-30 23:30:24 UTC) #9
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://chromiumcodereview.appspot.com/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 chrome/browser/extensions/blacklist.cc:83: } On 2012/11/30 18:57:20, kalman wrote: > I'm ...
8 years ago (2012-11-30 23:44:06 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc File chrome/browser/extensions/blacklist.cc (right): https://codereview.chromium.org/11415216/diff/1/chrome/browser/extensions/blacklist.cc#newcode83 chrome/browser/extensions/blacklist.cc:83: } On 2012/11/30 23:44:07, Yoyo Zhou wrote: > On ...
8 years ago (2012-12-01 02:51:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/7003
8 years ago (2012-12-01 02:52:05 UTC) #12
commit-bot: I haz the power
Presubmit check for 11415216-7003 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-01 02:52:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/7003
8 years ago (2012-12-01 02:53:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/14001
8 years ago (2012-12-01 03:12:24 UTC) #15
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_service.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-01 03:12:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/2005
8 years ago (2012-12-01 03:23:56 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-01 03:45:36 UTC) #18
not at google - send to devlin
+ivankr https://chromiumcodereview.appspot.com/11415216/diff/2005/chrome/browser/protector/protected_prefs_watcher_unittest.cc File chrome/browser/protector/protected_prefs_watcher_unittest.cc (right): https://chromiumcodereview.appspot.com/11415216/diff/2005/chrome/browser/protector/protected_prefs_watcher_unittest.cc#newcode137 chrome/browser/protector/protected_prefs_watcher_unittest.cc:137: EXPECT_TRUE(IsSignatureValid()); @ivankr this check is failing. Do you ...
8 years ago (2012-12-03 21:27:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/14036
8 years ago (2012-12-04 02:00:10 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_service.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-04 02:00:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/11063
8 years ago (2012-12-04 02:48:10 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests
8 years ago (2012-12-04 03:54:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/11067
8 years ago (2012-12-04 06:46:36 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests
8 years ago (2012-12-04 08:44:55 UTC) #25
Ivan Korotkov
https://chromiumcodereview.appspot.com/11415216/diff/2005/chrome/browser/protector/protected_prefs_watcher_unittest.cc File chrome/browser/protector/protected_prefs_watcher_unittest.cc (right): https://chromiumcodereview.appspot.com/11415216/diff/2005/chrome/browser/protector/protected_prefs_watcher_unittest.cc#newcode137 chrome/browser/protector/protected_prefs_watcher_unittest.cc:137: EXPECT_TRUE(IsSignatureValid()); On 2012/12/03 21:27:23, kalman wrote: > @ivankr this ...
8 years ago (2012-12-04 12:16:20 UTC) #26
Ivan Korotkov
That said, lgtm
8 years ago (2012-12-04 12:16:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415216/4101
8 years ago (2012-12-04 18:19:51 UTC) #28
commit-bot: I haz the power
8 years ago (2012-12-04 23:20:33 UTC) #29
Message was sent while issue was closed.
Change committed as 171079

Powered by Google App Engine
This is Rietveld 408576698