Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Issue 14973007: Auto-install/uninstall shared module dependencies for extensions. (Closed)

Created:
7 years, 7 months ago by elijahtaylor1
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, Marijn Kruisselbrink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Auto-install/uninstall shared module dependencies for extensions. BUG=237251 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207744

Patch Set 1 #

Total comments: 3

Patch Set 2 : feedback #

Patch Set 3 : nits #

Patch Set 4 : update checkimports logic per feedback #

Total comments: 8

Patch Set 5 : feedback #

Total comments: 16

Patch Set 6 : more feedback #

Total comments: 2

Patch Set 7 : feedback, rebased, added tests #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -80 lines) Patch
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 4 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 6 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 6 chunks +35 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 17 chunks +184 lines, -25 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 2 3 4 5 6 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/background.html View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/background.html View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/manifest.json View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/pending_updates_with_imports/Preferences View 1 2 3 4 5 6 1 chunk +147 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/backgroundpage.html View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/pending_updates_with_imports/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
elijahtaylor1
Early prototype, no tests yet, looking for feedback on how viable this solution is. As ...
7 years, 7 months ago (2013-05-16 18:52:16 UTC) #1
Matt Perry
https://codereview.chromium.org/14973007/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14973007/diff/1/chrome/browser/extensions/extension_service.cc#newcode2472 chrome/browser/extensions/extension_service.cc:2472: if (ShouldDelayExtensionUpdate(id, wait_for_idle)) { We have this concept of ...
7 years, 7 months ago (2013-05-16 19:17:55 UTC) #2
asargent_no_longer_on_chrome
Overall direction seems fine. https://codereview.chromium.org/14973007/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/14973007/diff/1/chrome/browser/extensions/extension_service.cc#newcode2306 chrome/browser/extensions/extension_service.cc:2306: if (pending_extension_manager()->AddFromExtensionImport( in the implementation ...
7 years, 7 months ago (2013-05-17 17:13:49 UTC) #3
Marijn Kruisselbrink
I'm sure you've thought of it, but if you use the enabled/disabled state to keep ...
7 years, 7 months ago (2013-05-20 18:28:23 UTC) #4
elijahtaylor1
FYI since I'm putting this on hold to work on other things this week for ...
7 years, 7 months ago (2013-05-21 18:30:30 UTC) #5
elijahtaylor1
Hi folks. PTAL. I unified all delayed installs into a single ExtensionSet. No tests still, ...
7 years, 6 months ago (2013-06-12 00:21:47 UTC) #6
Matt Perry
Good stuff. I really like how clean this ended up being. https://codereview.chromium.org/14973007/diff/11001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): ...
7 years, 6 months ago (2013-06-12 00:58:29 UTC) #7
elijahtaylor1
https://codereview.chromium.org/14973007/diff/11001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/14973007/diff/11001/chrome/browser/extensions/extension_prefs.cc#newcode1454 chrome/browser/extensions/extension_prefs.cc:1454: pending_install_dict->Remove(kDelayedInstallReason, NULL); On 2013/06/12 00:58:29, Matt Perry wrote: > ...
7 years, 6 months ago (2013-06-12 23:53:23 UTC) #8
Matt Perry
lgtm
7 years, 6 months ago (2013-06-12 23:57:07 UTC) #9
asargent_no_longer_on_chrome
a few small nits/suggestions/questions https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h File chrome/browser/extensions/extension_prefs.h (right): https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h#newcode398 chrome/browser/extensions/extension_prefs.h:398: enum DelayReason { Since the ...
7 years, 6 months ago (2013-06-13 05:47:16 UTC) #10
Matt Perry
https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h File chrome/browser/extensions/extension_prefs.h (right): https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h#newcode398 chrome/browser/extensions/extension_prefs.h:398: enum DelayReason { Also, move this to the top ...
7 years, 6 months ago (2013-06-13 17:42:58 UTC) #11
elijahtaylor1
working on some unit tests now... https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h File chrome/browser/extensions/extension_prefs.h (right): https://codereview.chromium.org/14973007/diff/18001/chrome/browser/extensions/extension_prefs.h#newcode398 chrome/browser/extensions/extension_prefs.h:398: enum DelayReason { ...
7 years, 6 months ago (2013-06-13 23:32:09 UTC) #12
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/14973007/diff/29001/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/14973007/diff/29001/chrome/browser/extensions/extension_service.h#newcode422 chrome/browser/extensions/extension_service.h:422: ImportStatus CheckImports(const extensions::Extension* extension); optional naming suggestion: would ...
7 years, 6 months ago (2013-06-13 23:43:55 UTC) #13
elijahtaylor1
rebased and updated with tests. Waiting for trys before submitting since I've not run any ...
7 years, 6 months ago (2013-06-19 00:26:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14973007/52001
7 years, 6 months ago (2013-06-20 20:05:07 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 07:11:21 UTC) #16
Message was sent while issue was closed.
Change committed as 207744

Powered by Google App Engine
This is Rietveld 408576698