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

Issue 1890163004: extensions: Abstract out install delay strategy (Closed)

Created:
4 years, 8 months ago by xiyuan
Modified:
4 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

extensions: Abstract out install delay strategy - Add a InstallGate interface that ExtensionService invokes to find out delayed install actions for a pending install; - Move update-when-idle logic into a UpdateInstallGate class; - Implement InstallGate in ExtensionGarbageCollector and SharedModuleService wit code moved from ExtensionService; - Register those install gates with ExtensionService in ExtensionSystemImpl; - TestExtensionSysmte is only interested in SharedModuleService related install delay strategy so only register that; BUG=585143 Committed: https://crrev.com/f6a4c6a676ecf8f990e4cbe3a47f6ad955367711 Cr-Commit-Position: refs/heads/master@{#388245}

Patch Set 1 #

Total comments: 1

Patch Set 2 : ExtensionSystemImpl holds generic InstallDelayer* #

Patch Set 3 : fix win compile #

Patch Set 4 : fix win,mac compile #

Total comments: 6

Patch Set 5 : for comments in #4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -148 lines) Patch
M chrome/browser/extensions/extension_garbage_collector.h View 1 2 3 4 5 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_garbage_collector.cc View 1 2 3 4 2 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 8 chunks +22 lines, -29 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 chunks +78 lines, -104 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_base.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_system_impl.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 3 4 4 chunks +16 lines, -0 lines 0 comments Download
A chrome/browser/extensions/install_gate.h View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/extensions/shared_module_service.h View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/shared_module_service.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/extensions/update_install_gate.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/extensions/update_install_gate.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/extensions/update_install_gate_unittest.cc View 1 2 3 4 1 chunk +279 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
xiyuan
Following your suggestion in https://codereview.chromium.org/1869483002/, this CL creates an InstallDelayer interface and moves the impl ...
4 years, 8 months ago (2016-04-15 20:04:23 UTC) #2
asargent_no_longer_on_chrome
https://codereview.chromium.org/1890163004/diff/60001/chrome/browser/extensions/install_delayer.h File chrome/browser/extensions/install_delayer.h (right): https://codereview.chromium.org/1890163004/diff/60001/chrome/browser/extensions/install_delayer.h#newcode14 chrome/browser/extensions/install_delayer.h:14: class InstallDelayer { naming suggestion: I was thinking perhaps ...
4 years, 8 months ago (2016-04-16 00:20:22 UTC) #3
xiyuan
https://codereview.chromium.org/1890163004/diff/60001/chrome/browser/extensions/install_delayer.h File chrome/browser/extensions/install_delayer.h (right): https://codereview.chromium.org/1890163004/diff/60001/chrome/browser/extensions/install_delayer.h#newcode14 chrome/browser/extensions/install_delayer.h:14: class InstallDelayer { On 2016/04/16 00:20:22, Antony Sargent wrote: ...
4 years, 8 months ago (2016-04-18 20:44:30 UTC) #5
asargent_no_longer_on_chrome
lgtm
4 years, 8 months ago (2016-04-19 17:29:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890163004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890163004/80001
4 years, 8 months ago (2016-04-19 17:33:05 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-19 18:15:10 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:13:47 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f6a4c6a676ecf8f990e4cbe3a47f6ad955367711
Cr-Commit-Position: refs/heads/master@{#388245}

Powered by Google App Engine
This is Rietveld 408576698