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

Issue 174036: Get rid of the extension's "Current Version" file. (Closed)

Created:
11 years, 4 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Get rid of the extension's "Current Version" file. The entire manifest.json value is now stored in the prefs file. This will allow for quick extension checks on startup. BUG=18293 TEST=Make sure installing/upgrading/uninstalling extensions works as expected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23848

Patch Set 1 #

Patch Set 2 : unit test fixes #

Total comments: 11

Patch Set 3 : review fixins #

Patch Set 4 : merge conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -288 lines) Patch
M chrome/browser/extensions/crx_installer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_file_util.h View 1 2 3 3 chunks +24 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_file_util.cc View 1 2 3 15 chunks +57 lines, -117 lines 0 comments Download
M chrome/browser/extensions/extension_file_util_unittest.cc View 2 3 1 chunk +22 lines, -78 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 5 chunks +41 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 7 chunks +49 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 2 3 3 chunks +16 lines, -32 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/Current Version View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Matt Perry
11 years, 4 months ago (2009-08-19 01:15:09 UTC) #1
Aaron Boodman
LGTM Only thing I think you really should do in this CL is move CompareVersion(). ...
11 years, 4 months ago (2009-08-19 02:49:09 UTC) #2
Matt Perry
http://codereview.chromium.org/174036/diff/1011/14 File chrome/browser/extensions/extension_file_util.cc (right): http://codereview.chromium.org/174036/diff/1011/14#newcode20 Line 20: // TODO(mpcomplete): obsolete. remove after migration period. On ...
11 years, 4 months ago (2009-08-19 19:46:02 UTC) #3
Aaron Boodman
11 years, 4 months ago (2009-08-19 20:30:34 UTC) #4
On 2009/08/19 19:46:02, Matt Perry wrote:
> This function is actually checking the filesystem to make sure all the bits of
> the extension exist. I think it still makes sense to check this every time,
> because someone could go in and delete some extension files.

Disagree. I think we shouldn't be worried about the case of users or software
manually deleting extension files after installation. At that point the
extension will be borked and they can manually uninstall it. NBD.

If we skip this validation step for normal startup than we can get rid of a
bunch of file hits on startup, which seems valuable, and it also simplifies the
startup code.

Again, not something I think needs to be done now, but a direction we should go.

Powered by Google App Engine
This is Rietveld 408576698