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

Issue 7237028: Reinstall extensions if they become policy-controlled (Closed)

Created:
9 years, 6 months ago by gfeher
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews
Visibility:
Public.

Description

Reinstall extensions if they become policy-controlled BUG=86519 TEST=please see instructions in the bug

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 chunk +14 lines, -3 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
gfeher
Hi, what do you think about this? This code would essentially issue an uninstall and ...
9 years, 6 months ago (2011-06-24 17:43:00 UTC) #1
Sam Kerner (Chrome)
FYI: Aaron is on leave. http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/extension_service.cc#newcode415 chrome/browser/extensions/extension_service.cc:415: if (location != extension->location() ...
9 years, 6 months ago (2011-06-24 20:03:34 UTC) #2
gfeher
http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/extension_service.cc#newcode415 chrome/browser/extensions/extension_service.cc:415: if (location != extension->location() && Your comment got me ...
9 years, 6 months ago (2011-06-27 12:59:49 UTC) #3
Sam Kerner (Chrome)
9 years, 6 months ago (2011-06-27 14:26:30 UTC) #4
http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/exten...
File chrome/browser/extensions/extension_service.cc (right):

http://codereview.chromium.org/7237028/diff/1/chrome/browser/extensions/exten...
chrome/browser/extensions/extension_service.cc:415: if (location !=
extension->location() &&
On 2011/06/27 12:59:49, gfeher wrote:
> Your comment got me thinking. In the case you describe, consider:
> 1. user installs extension X
> 2. an application registers extension X as EXTERNAL_UPDATE_URL
> 3. the application gets uninstalled and removes extension X as
> EXTERNAL_UPDATE_URL
> 4. extension X gets uninstalled
> (I guess what we are missing is extensions having multiple locations,
including
> user install.)

Yes, we can't do the right thing here without some way to represent the fact
that extensions are installed for more than one reason.  It was decided that the
complexity of supporting multiple locations was not worth the benefit of fixing
this.  At the time, we were not thinking about policy extensions.

If you feel that this is a significant issue for policy extensions, send an
email to Erik Kay and me, and we can reevaluate.

> This is actually also a problem for policy-controlled extensions, although it
> may be acceptable in their special case. (I'll have to talk with gwilson about
> it.)
> 
> WDYT?
>

Powered by Google App Engine
This is Rietveld 408576698