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

Issue 10541126: Cleaning Up Extensions When Local Content Removed (Closed)

Created:
8 years, 6 months ago by Devlin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Cleaning Up Extensions When Local Content Removed This fixes an issue where removing an extension's local content, e.g. deleting the user-data-dir/Default/Extensions/<id> directory, would result in a broken extension. Chrome will now uninstall/remove any extensions where the path to the extension cannot be resolved. BUG=31910 TEST=ExtensionServiceTest.CleanupInternalExtensionsMissingLocalContent; ExtensionServiceTest.CleanupUnpackedExtensionsMissingLocalContent; test by hand by loading an extension, deleting the local directory, and restarting chrome Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142427

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Yoz's changes done #

Patch Set 3 : Latest master merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -158 lines) Patch
A chrome/browser/extensions/extension_garbage_collector.h View 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_garbage_collector.cc View 1 1 chunk +192 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 5 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 5 chunks +129 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_file_util.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 1 chunk +0 lines, -63 lines 0 comments Download
M chrome/common/extensions/extension_file_util_unittest.cc View 1 1 chunk +0 lines, -57 lines 0 comments Download
A chrome/test/data/extensions/garbage_collection/Extensions/fdoajpacpdeapbmhbblepcnilfkpmkff/1.0_0/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/garbage_collection/Extensions/fdoajpacpdeapbmhbblepcnilfkpmkff/1.1_0/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/garbage_collection/Preferences View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Aaron Boodman
Delegating to yoz
8 years, 6 months ago (2012-06-14 19:35:18 UTC) #1
Yoyo Zhou
Can you comment on what's changed since the previous version of this CL?
8 years, 6 months ago (2012-06-14 20:37:22 UTC) #2
Devlin
On 2012/06/14 20:37:22, Yoyo Zhou wrote: > Can you comment on what's changed since the ...
8 years, 6 months ago (2012-06-14 21:07:00 UTC) #3
Yoyo Zhou
LGTM; I didn't review the garbage_collector code as carefully since I assume it hasn't changed ...
8 years, 6 months ago (2012-06-14 22:34:09 UTC) #4
Devlin
Changes done; thanks for the review :) https://chromiumcodereview.appspot.com/10541126/diff/5001/chrome/browser/extensions/extension_garbage_collector.cc File chrome/browser/extensions/extension_garbage_collector.cc (right): https://chromiumcodereview.appspot.com/10541126/diff/5001/chrome/browser/extensions/extension_garbage_collector.cc#newcode35 chrome/browser/extensions/extension_garbage_collector.cc:35: // ExtensionService ...
8 years, 6 months ago (2012-06-14 22:51:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10541126/6016
8 years, 6 months ago (2012-06-14 22:51:46 UTC) #6
commit-bot: I haz the power
Presubmit check for 10541126-6016 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-14 22:51:50 UTC) #7
Andrew T Wilson (Slow)
browser/sync LGTM
8 years, 6 months ago (2012-06-15 16:45:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10541126/16001
8 years, 6 months ago (2012-06-15 16:58:19 UTC) #9
commit-bot: I haz the power
Change committed as 142427
8 years, 6 months ago (2012-06-15 18:09:43 UTC) #10
Evan Stade
this patch seems to have broken --load-extension. Reverting it locally makes the flag start working ...
8 years, 6 months ago (2012-06-15 21:06:04 UTC) #11
Devlin
On 2012/06/15 21:06:04, Evan Stade wrote: > this patch seems to have broken --load-extension. Reverting ...
8 years, 6 months ago (2012-06-15 21:16:15 UTC) #12
Devlin
On 2012/06/15 21:06:04, Evan Stade wrote: > this patch seems to have broken --load-extension. Reverting ...
8 years, 6 months ago (2012-06-15 21:38:42 UTC) #13
Devlin
8 years, 6 months ago (2012-06-15 21:44:29 UTC) #14
On 2012/06/15 21:38:42, D Cronin wrote:
> On 2012/06/15 21:06:04, Evan Stade wrote:
> > this patch seems to have broken --load-extension. Reverting it locally makes
> the
> > flag start working again.
> 
> On second thought...this might not be me.  I have a revision from 142392,
which
> has the same issue.  Also, when it breaks (at least for me), I get the
"Manifest
> file is missing or can't be read" from here:
>
http://code.google.com/searchframe#OAMlx_jo-ck/src/chrome/common/extensions/e...
> I've checked, the manifest file is there...

Another update, --load-extension doesn't seem to be working on 142414 either...

Powered by Google App Engine
This is Rietveld 408576698