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

Issue 298023009: Remove InstallTracker's extension load, unload observer (Closed)

Created:
6 years, 6 months ago by limasdf
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Remove InstallTracker's extension load, unload observer. Since ExtensionRegistry provide canonical way, use ExtensionRegistry instead. BUG=374353 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275434

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Rebase and shutdown #

Total comments: 5

Patch Set 3 : OnRegistryShutdown, add missing onextensionunloaded #

Patch Set 4 : OnShutdown #

Total comments: 2

Patch Set 5 : OnShutdown again #

Total comments: 4

Patch Set 6 : DCHECK #

Total comments: 1

Patch Set 7 : indent #

Patch Set 8 : fix clang warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -114 lines) Patch
M chrome/browser/extensions/activity_log/activity_log.h View 7 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 10 chunks +14 lines, -17 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/install_observer.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/install_tracker.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/install_tracker.cc View 1 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.h View 1 2 3 4 5 6 7 5 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 2 3 4 5 9 chunks +27 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/recommended_apps.h View 1 2 3 4 3 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/recommended_apps.cc View 1 2 3 4 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_result.h View 1 2 3 4 5 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_result.cc View 1 2 3 4 5 6 6 chunks +21 lines, -17 lines 0 comments Download
M extensions/browser/extension_registry.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_registry_observer.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/browser/extension_registry_unittest.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
limasdf
when you have time
6 years, 6 months ago (2014-05-29 17:11:29 UTC) #1
limasdf
Sorry. Hold on please, there's some failed test. After fixing it i'll re-request
6 years, 6 months ago (2014-05-29 18:04:16 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/298023009/diff/230001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (left): https://codereview.chromium.org/298023009/diff/230001/chrome/browser/extensions/activity_log/activity_log.cc#oldcode700 chrome/browser/extensions/activity_log/activity_log.cc:700: DependsOn(InstallTrackerFactory::GetInstance()); strictly speaking you should add ExtensionRegistryFactory here https://codereview.chromium.org/298023009/diff/230001/chrome/browser/ui/app_list/extension_app_model_builder.cc ...
6 years, 6 months ago (2014-05-29 18:09:29 UTC) #3
limasdf
Thank you for the review. I'll fix address both your comments and fix test. and ...
6 years, 6 months ago (2014-05-29 18:17:50 UTC) #4
limasdf
please take a look. I added OnShutdown to ExtensionRegistryObserver. https://codereview.chromium.org/298023009/diff/230001/chrome/browser/extensions/activity_log/activity_log.cc File chrome/browser/extensions/activity_log/activity_log.cc (left): https://codereview.chromium.org/298023009/diff/230001/chrome/browser/extensions/activity_log/activity_log.cc#oldcode700 chrome/browser/extensions/activity_log/activity_log.cc:700: ...
6 years, 6 months ago (2014-05-30 21:00:49 UTC) #5
tfarina
Benjamin, my observation below is mostly for you, based on what I'm experiencing in https://codereview.chromium.org/297293002 ...
6 years, 6 months ago (2014-05-30 23:05:15 UTC) #6
not at google - send to devlin
https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc File chrome/browser/ui/app_list/extension_app_model_builder.cc (right): https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc#newcode187 chrome/browser/ui/app_list/extension_app_model_builder.cc:187: void ExtensionAppModelBuilder::OnShutdown() { again strictly speaking you should be ...
6 years, 6 months ago (2014-05-30 23:22:17 UTC) #7
limasdf
please take a look https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc File chrome/browser/ui/app_list/extension_app_model_builder.cc (right): https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc#newcode187 chrome/browser/ui/app_list/extension_app_model_builder.cc:187: void ExtensionAppModelBuilder::OnShutdown() { On 2014/05/30 ...
6 years, 6 months ago (2014-06-02 11:49:04 UTC) #8
not at google - send to devlin
https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc File chrome/browser/ui/app_list/extension_app_model_builder.cc (right): https://codereview.chromium.org/298023009/diff/390001/chrome/browser/ui/app_list/extension_app_model_builder.cc#newcode187 chrome/browser/ui/app_list/extension_app_model_builder.cc:187: void ExtensionAppModelBuilder::OnShutdown() { On 2014/06/02 11:49:04, limasdf wrote: > ...
6 years, 6 months ago (2014-06-02 19:45:53 UTC) #9
limasdf
kalman, could you take a look at this? changed OnExtensionShutdown -> OnShutdown
6 years, 6 months ago (2014-06-03 18:46:44 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/298023009/diff/480001/extensions/browser/extension_registry_observer.h File extensions/browser/extension_registry_observer.h (right): https://codereview.chromium.org/298023009/diff/480001/extensions/browser/extension_registry_observer.h#newcode67 extensions/browser/extension_registry_observer.h:67: virtual void OnShutdown() {} OnShutdown should take an ExtensionRegistry ...
6 years, 6 months ago (2014-06-03 19:06:35 UTC) #11
not at google - send to devlin
https://codereview.chromium.org/298023009/diff/480001/extensions/browser/extension_registry_observer.h File extensions/browser/extension_registry_observer.h (right): https://codereview.chromium.org/298023009/diff/480001/extensions/browser/extension_registry_observer.h#newcode67 extensions/browser/extension_registry_observer.h:67: virtual void OnShutdown() {} On 2014/06/03 19:06:35, kalman wrote: ...
6 years, 6 months ago (2014-06-03 19:08:02 UTC) #12
limasdf
dear kalman, I am sorry that I wasn't fully understand your previous comments(I blame my ...
6 years, 6 months ago (2014-06-04 18:29:14 UTC) #13
not at google - send to devlin
lgtm but needs a couple of DCHECKs. https://codereview.chromium.org/298023009/diff/520001/chrome/browser/ui/app_list/extension_app_model_builder.cc File chrome/browser/ui/app_list/extension_app_model_builder.cc (right): https://codereview.chromium.org/298023009/diff/520001/chrome/browser/ui/app_list/extension_app_model_builder.cc#newcode200 chrome/browser/ui/app_list/extension_app_model_builder.cc:200: if (extension_registry_ ...
6 years, 6 months ago (2014-06-04 18:36:35 UTC) #14
limasdf
Added @xiyuan as the owner of ui/app_list Xiyuan, could you take a look? https://codereview.chromium.org/298023009/diff/520001/chrome/browser/ui/app_list/extension_app_model_builder.cc File ...
6 years, 6 months ago (2014-06-04 18:53:09 UTC) #15
xiyuan
ui/app_list LGTM https://codereview.chromium.org/298023009/diff/540001/chrome/browser/ui/app_list/search/app_result.cc File chrome/browser/ui/app_list/search/app_result.cc (right): https://codereview.chromium.org/298023009/diff/540001/chrome/browser/ui/app_list/search/app_result.cc#newcode200 chrome/browser/ui/app_list/search/app_result.cc:200: StopObservingExtensionRegistry(); nit: wrong indent.
6 years, 6 months ago (2014-06-04 19:39:37 UTC) #16
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-05 00:53:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/298023009/560001
6 years, 6 months ago (2014-06-05 00:55:07 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 05:23:44 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 05:28:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10846) linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13687)
6 years, 6 months ago (2014-06-05 05:28:22 UTC) #21
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-05 06:15:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/298023009/560001
6 years, 6 months ago (2014-06-05 06:16:37 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 07:47:13 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 07:52:46 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10913)
6 years, 6 months ago (2014-06-05 07:52:47 UTC) #26
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-05 13:41:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/298023009/560001
6 years, 6 months ago (2014-06-05 13:43:31 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 15:26:36 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 15:58:02 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/13391)
6 years, 6 months ago (2014-06-05 15:58:02 UTC) #31
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-05 20:24:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/298023009/600001
6 years, 6 months ago (2014-06-05 20:26:06 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 00:24:08 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 00:53:30 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/21396) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/13664)
6 years, 6 months ago (2014-06-06 00:53:31 UTC) #36
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-06 11:44:57 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/298023009/620001
6 years, 6 months ago (2014-06-06 11:46:27 UTC) #38
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 14:08:50 UTC) #39
Message was sent while issue was closed.
Change committed as 275434

Powered by Google App Engine
This is Rietveld 408576698