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

Issue 52743002: Declarative rules should be removed on uninstalling, not unloading (Closed)

Created:
7 years, 1 month ago by vabr (Chromium)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Fady Samuel
Visibility:
Public.

Description

Declarative rules should be removed on uninstalling, not unloading When they are removed on unloading, they are in particular removed on disabling an extension. Re-enabling the extension then does not restore these rules. BUG=313241 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236918

Patch Set 1 : #

Patch Set 2 : Fixed compilation issues #

Total comments: 2

Patch Set 3 : Rewritten and rebased off https://codereview.chromium.org/64093010/ #

Total comments: 13

Patch Set 4 : Comments addressed, browsertest extended, delegate no more observing, CL still broken #

Total comments: 20

Patch Set 5 : Avoid shooting oneself in a foot + browser test cleaned & pruned #

Total comments: 8

Patch Set 6 : Comments addressed #

Total comments: 2

Patch Set 7 : Further comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -86 lines) Patch
M chrome/browser/extensions/api/declarative/declarative_apitest.cc View 1 2 3 4 5 6 4 chunks +160 lines, -23 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_cache_delegate.h View 1 2 3 4 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_cache_delegate.cc View 1 2 3 2 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry.cc View 1 2 3 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service.h View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service.cc View 1 2 3 3 chunks +27 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/declarative/redirect_to_data/background.js View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
vabr (Chromium)
Hi Jeffrey, It'd be an honour to have your review for this. However, the Cl ...
7 years, 1 month ago (2013-10-30 17:16:42 UTC) #1
Jeffrey Yasskin
On 2013/10/30 17:16:42, vabr (Chromium) wrote: > However, the Cl is missing a key part ...
7 years, 1 month ago (2013-10-31 00:54:17 UTC) #2
vabr (Chromium)
On 2013/10/31 00:54:17, Jeffrey Yasskin wrote: > On 2013/10/30 17:16:42, vabr (Chromium) wrote: > > ...
7 years, 1 month ago (2013-10-31 17:13:01 UTC) #3
vabr (Chromium)
Hi Jeffrey, I'd be grateful for your opinion on the following: RulesRegistry needs to distinguish ...
7 years, 1 month ago (2013-11-06 16:00:47 UTC) #4
Jeffrey Yasskin
On Wed, Nov 6, 2013 at 8:00 AM, <vabr@chromium.org> wrote: > Hi Jeffrey, > > ...
7 years, 1 month ago (2013-11-06 22:06:14 UTC) #5
Fady Samuel
This patch is now stale after my landing some refactorings to RulesRegistry.
7 years, 1 month ago (2013-11-07 18:23:07 UTC) #6
vabr (Chromium)
On 2013/11/07 18:23:07, Fady Samuel wrote: > This patch is now stale after my landing ...
7 years, 1 month ago (2013-11-08 07:22:26 UTC) #7
vabr (Chromium)
Hi Jeffrey, Once you have time (sorry for spamming you with reviews), could you PTAL? ...
7 years, 1 month ago (2013-11-19 17:05:31 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/52743002/diff/300001/chrome/browser/extensions/api/declarative/declarative_apitest.cc File chrome/browser/extensions/api/declarative/declarative_apitest.cc (right): https://codereview.chromium.org/52743002/diff/300001/chrome/browser/extensions/api/declarative/declarative_apitest.cc#newcode111 chrome/browser/extensions/api/declarative/declarative_apitest.cc:111: EnableExtension(extension_id); Could you additionally try ReloadExtension()? I'm not exactly ...
7 years, 1 month ago (2013-11-20 05:55:28 UTC) #9
vabr (Chromium)
Hi Jeffrey, Thanks for your comments, I addressed them all (I hope!). Then I discovered ...
7 years, 1 month ago (2013-11-20 17:46:07 UTC) #10
vabr (Chromium)
On 2013/11/20 17:46:07, vabr (Chromium) wrote: > There is also a problem with the RenderViewHost ...
7 years, 1 month ago (2013-11-21 13:21:50 UTC) #11
Jeffrey Yasskin
> Then I discovered one more problem: > The RulesRegistryDelegate was listening to NOTIFICATION_EXTENSION_LOADED and ...
7 years, 1 month ago (2013-11-22 00:35:53 UTC) #12
vabr (Chromium)
Hi Jeffrey, Thanks for comments! I addressed all of them, with the exception of "d'oh". ...
7 years, 1 month ago (2013-11-22 10:41:50 UTC) #13
Jeffrey Yasskin
LGTM, after fixing the Reload comment or ordering in the test. The "d'oh" was just ...
7 years, 1 month ago (2013-11-22 18:42:44 UTC) #14
vabr (Chromium)
Thanks, Jeffrey. I'm not sure I addressed your last e-mail satisfactorily, please check. Cheers, Vaclav ...
7 years, 1 month ago (2013-11-22 21:16:44 UTC) #15
Jeffrey Yasskin
https://codereview.chromium.org/52743002/diff/670001/chrome/browser/extensions/api/declarative/declarative_apitest.cc File chrome/browser/extensions/api/declarative/declarative_apitest.cc (right): https://codereview.chromium.org/52743002/diff/670001/chrome/browser/extensions/api/declarative/declarative_apitest.cc#newcode193 chrome/browser/extensions/api/declarative/declarative_apitest.cc:193: // 4. Reload the extension. Rules are still active. ...
7 years, 1 month ago (2013-11-22 21:39:52 UTC) #16
vabr (Chromium)
Thanks Jeffrey, Both comments addressed, the test still passes locally. :) Vaclav https://codereview.chromium.org/52743002/diff/670001/chrome/browser/extensions/api/declarative/declarative_apitest.cc File chrome/browser/extensions/api/declarative/declarative_apitest.cc ...
7 years, 1 month ago (2013-11-22 21:52:38 UTC) #17
Jeffrey Yasskin
LGTM again. Thanks for bearing with me!
7 years, 1 month ago (2013-11-22 21:55:23 UTC) #18
vabr (Chromium)
On 2013/11/22 21:55:23, Jeffrey Yasskin wrote: > LGTM again. Thanks for bearing with me! You've ...
7 years, 1 month ago (2013-11-22 22:02:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/52743002/860001
7 years, 1 month ago (2013-11-22 22:03:55 UTC) #20
commit-bot: I haz the power
7 years, 1 month ago (2013-11-23 01:58:12 UTC) #21
Message was sent while issue was closed.
Change committed as 236918

Powered by Google App Engine
This is Rietveld 408576698