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

Issue 20304002: Don't create extension actions for disabled extensions. (Closed)

Created:
7 years, 5 months ago by msimonides
Modified:
7 years, 4 months ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Don't create extension actions for disabled extensions. The GetOrCreateOrNull function creates extension actions if needed and caches them for later. When an extension is unloaded, the cache is cleared. Unfortunately it is possible for other listeners of the NOTIFICATION_EXTENSION_UNLOADED to call GetOrCreateOrNull and the action be recreated and cached for the extension being unloaded. The cached action then exists even if the reloaded extension doesn't have the action. This change prevents recreation of the action object for extensions that are already unloaded. BUG=246919 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214767

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M chrome/browser/extensions/extension_action_manager.cc View 5 chunks +20 lines, -5 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
msimonides
7 years, 5 months ago (2013-07-25 13:14:56 UTC) #1
Jeffrey Yasskin
Are you sure this requires the action to go away across the reload? If this ...
7 years, 4 months ago (2013-07-30 00:25:22 UTC) #2
msimonides
On 2013/07/30 00:25:22, Jeffrey Yasskin wrote: > Are you sure this requires the action to ...
7 years, 4 months ago (2013-07-30 06:51:33 UTC) #3
msimonides
On 2013/07/30 06:51:33, msimonides wrote: > On 2013/07/30 00:25:22, Jeffrey Yasskin wrote: > > Are ...
7 years, 4 months ago (2013-07-30 11:01:32 UTC) #4
Jeffrey Yasskin
lgtm. Lots of commentary below, but I don't have any changes to suggest. Thanks for ...
7 years, 4 months ago (2013-07-30 19:07:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/20304002/1
7 years, 4 months ago (2013-07-31 07:56:31 UTC) #6
msimonides
On 2013/07/30 19:07:48, Jeffrey Yasskin wrote: > lgtm. Lots of commentary below, but I don't ...
7 years, 4 months ago (2013-07-31 08:05:13 UTC) #7
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=3140
7 years, 4 months ago (2013-07-31 10:54:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/20304002/1
7 years, 4 months ago (2013-07-31 11:32:38 UTC) #9
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=3165
7 years, 4 months ago (2013-07-31 11:48:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/20304002/1
7 years, 4 months ago (2013-07-31 13:49:13 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 17:33:54 UTC) #12
Message was sent while issue was closed.
Change committed as 214767

Powered by Google App Engine
This is Rietveld 408576698