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

Issue 204983020: Remove ExtensionService Garbage-Collecting methods. (Closed)

Created:
6 years, 9 months ago by Devlin
Modified:
6 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Remove ExtensionService Garbage-Collecting methods. Make a new class, ExtensionGarbageCollector, which performs: - ExtensionService::GarbageCollectExtensions(), - extension_file_util::GarbageCollectExtensions() (the file-thread impl of ExtensionService::GarbageCollectExtensions()), - ExtensionService::GarbageCollectIsolatedStorage() BUG=351891 TBR=rkc@chromium.org (for c/b/chromeos/kiosk_mode - no functional changes, but the TODO has moved from ExtensionService to ExtensionGarbageCollector). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260207

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Yoyo's #

Patch Set 3 : Remove lazy global empty delta #

Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -374 lines) Patch
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 3 chunks +3 lines, -2 lines 0 comments Download
A chrome/browser/extensions/extension_garbage_collector.h View 1 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_garbage_collector.cc View 1 1 chunk +249 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_garbage_collector_unittest.cc View 1 1 chunk +138 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 8 chunks +17 lines, -32 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 8 chunks +9 lines, -103 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 1 chunk +0 lines, -112 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_file_util.h View 3 chunks +3 lines, -17 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 5 chunks +3 lines, -83 lines 0 comments Download
M chrome/common/extensions/extension_file_util_unittest.cc View 1 chunk +1 line, -13 lines 0 comments Download
M extensions/common/one_shot_event.h View 3 chunks +13 lines, -2 lines 0 comments Download
M extensions/common/one_shot_event.cc View 1 2 4 chunks +35 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Devlin
6 years, 9 months ago (2014-03-24 22:45:54 UTC) #1
Yoyo Zhou
LGTM with nits https://chromiumcodereview.appspot.com/204983020/diff/40001/chrome/browser/extensions/extension_garbage_collector.cc File chrome/browser/extensions/extension_garbage_collector.cc (right): https://chromiumcodereview.appspot.com/204983020/diff/40001/chrome/browser/extensions/extension_garbage_collector.cc#newcode132 chrome/browser/extensions/extension_garbage_collector.cc:132: if (disable_garbage_collection_) This should be initialized ...
6 years, 9 months ago (2014-03-26 01:54:11 UTC) #2
Devlin
https://codereview.chromium.org/204983020/diff/40001/chrome/browser/extensions/extension_garbage_collector.cc File chrome/browser/extensions/extension_garbage_collector.cc (right): https://codereview.chromium.org/204983020/diff/40001/chrome/browser/extensions/extension_garbage_collector.cc#newcode132 chrome/browser/extensions/extension_garbage_collector.cc:132: if (disable_garbage_collection_) On 2014/03/26 01:54:12, Yoyo Zhou wrote: > ...
6 years, 9 months ago (2014-03-26 23:56:31 UTC) #3
Devlin
Jeffrey, wanna take a quick look at one_shot_event changes? (If not, not needed as Yoyo ...
6 years, 9 months ago (2014-03-26 23:57:11 UTC) #4
Devlin
Removed empty time delta per Jeffrey's (offline) request.
6 years, 9 months ago (2014-03-27 20:36:55 UTC) #5
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 9 months ago (2014-03-27 20:38:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/204983020/190001
6 years, 9 months ago (2014-03-27 20:40:39 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 02:29:43 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=289979
6 years, 9 months ago (2014-03-28 02:29:44 UTC) #9
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 9 months ago (2014-03-28 03:49:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/204983020/190001
6 years, 9 months ago (2014-03-28 03:50:23 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 05:52:28 UTC) #12
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=136767
6 years, 9 months ago (2014-03-28 05:52:28 UTC) #13
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 9 months ago (2014-03-28 05:55:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/204983020/190001
6 years, 9 months ago (2014-03-28 05:55:53 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 10:53:19 UTC) #16
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=137071
6 years, 9 months ago (2014-03-28 10:53:20 UTC) #17
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 9 months ago (2014-03-28 13:55:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/204983020/190001
6 years, 9 months ago (2014-03-28 13:55:16 UTC) #19
commit-bot: I haz the power
Change committed as 260207
6 years, 9 months ago (2014-03-28 18:28:14 UTC) #20
DaleCurtis
Hi I think this patch is causing browser crashes due to an incorrect threading story: ...
6 years, 9 months ago (2014-03-28 20:35:58 UTC) #21
DaleCurtis
6 years, 9 months ago (2014-03-28 20:40:21 UTC) #22
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/217233004/ by dalecurtis@chromium.org.

The reason for reverting is: Launch the browser and just wait a bit, eventually
it crashes with:

[6912:6955:0328/131903:FATAL:weak_ptr.cc(26)] Check failed:
sequence_checker_.CalledOnValidSequencedThread(). WeakPtrs must be checked on
the same sequenced thread.

Commenting out that check then gets you to:

[12009:12077:0328/133048:FATAL:extension_garbage_collector.cc(232)] Check
failed: content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE). 

Reverting the patch fixes the issue..

Powered by Google App Engine
This is Rietveld 408576698