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

Issue 965233002: Remove deprecated extension notification from theme_service (Closed)

Created:
5 years, 9 months ago by limasdf
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove deprecated extension notification from theme_service. Use ExtensionRegistryObserver instead. R=pkotwicz@chromium.org BUG=411568 TEST=unit_tests Committed: https://crrev.com/96f0702b9e5ff97bf1870b7ac7e614c2358a78aa Cr-Commit-Position: refs/heads/master@{#320587}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Remove ExtensionRegistryObserver and Call from ExtensionService instead. #

Total comments: 4

Patch Set 3 : guard ENABLE_EXTENSIONS #

Total comments: 14

Patch Set 4 : encapsulate ExtensionRegistry #

Total comments: 2

Patch Set 5 : remove unwanted override #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : move to private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -65 lines) Patch
M chrome/browser/themes/theme_service.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 5 6 11 chunks +76 lines, -47 lines 0 comments Download
M chrome/browser/themes/theme_service_factory.cc View 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_service_unittest.cc View 1 3 chunks +16 lines, -16 lines 0 comments Download

Messages

Total messages: 42 (14 generated)
limasdf
PTAL!
5 years, 9 months ago (2015-03-04 15:05:08 UTC) #7
pkotwicz
lgtm
5 years, 9 months ago (2015-03-04 15:27:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/965233002/100001
5 years, 9 months ago (2015-03-04 15:29:38 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/44489)
5 years, 9 months ago (2015-03-04 15:39:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/965233002/100001
5 years, 9 months ago (2015-03-04 22:42:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/65560)
5 years, 9 months ago (2015-03-04 23:23:06 UTC) #16
Lei Zhang
https://codereview.chromium.org/965233002/diff/100001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/965233002/diff/100001/chrome/browser/themes/theme_service.h#newcode63 chrome/browser/themes/theme_service.h:63: public extensions::ExtensionRegistryObserver, Rather than making ThemeService an ExtensionRegistryObserver, can ...
5 years, 9 months ago (2015-03-04 23:50:37 UTC) #18
limasdf
https://codereview.chromium.org/965233002/diff/100001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/965233002/diff/100001/chrome/browser/themes/theme_service.h#newcode63 chrome/browser/themes/theme_service.h:63: public extensions::ExtensionRegistryObserver, On 2015/03/04 23:50:37, Lei Zhang wrote: > ...
5 years, 9 months ago (2015-03-05 06:04:52 UTC) #19
Lei Zhang
On 2015/03/05 06:04:52, limasdf wrote: > Sorry about my ignorance. do you mean this? > ...
5 years, 9 months ago (2015-03-05 06:18:46 UTC) #20
limasdf
PTAL +kalman for extension
5 years, 9 months ago (2015-03-09 11:31:46 UTC) #22
not at google - send to devlin
https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc#newcode1079 chrome/browser/extensions/extension_service.cc:1079: ThemeServiceFactory::GetForProfile(profile_) The point of Observers is so that ExtensionService ...
5 years, 9 months ago (2015-03-09 16:32:40 UTC) #23
limasdf
https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc#newcode1079 chrome/browser/extensions/extension_service.cc:1079: ThemeServiceFactory::GetForProfile(profile_) On 2015/03/09 16:32:40, kalman wrote: > The point ...
5 years, 9 months ago (2015-03-10 16:46:16 UTC) #24
not at google - send to devlin
https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/965233002/diff/120001/chrome/browser/extensions/extension_service.cc#newcode1079 chrome/browser/extensions/extension_service.cc:1079: ThemeServiceFactory::GetForProfile(profile_) On 2015/03/10 16:46:16, limasdf wrote: > On 2015/03/09 ...
5 years, 9 months ago (2015-03-10 16:50:18 UTC) #25
Lei Zhang
https://codereview.chromium.org/965233002/diff/120001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/965233002/diff/120001/chrome/browser/themes/theme_service.h#newcode65 chrome/browser/themes/theme_service.h:65: class ExtensionObserver { This class needs to: - inherit ...
5 years, 9 months ago (2015-03-10 19:25:52 UTC) #26
Lei Zhang
On 2015/03/10 19:25:52, Lei Zhang wrote: > https://codereview.chromium.org/965233002/diff/120001/chrome/browser/themes/theme_service.h > File chrome/browser/themes/theme_service.h (right): > > https://codereview.chromium.org/965233002/diff/120001/chrome/browser/themes/theme_service.h#newcode65 ...
5 years, 9 months ago (2015-03-10 19:34:43 UTC) #27
Lei Zhang
On 2015/03/10 19:34:43, Lei Zhang wrote: > On 2015/03/10 19:25:52, Lei Zhang wrote: > > ...
5 years, 9 months ago (2015-03-10 20:19:15 UTC) #28
limasdf
On 2015/03/10 20:19:15, Lei Zhang wrote: > On 2015/03/10 19:34:43, Lei Zhang wrote: > > ...
5 years, 9 months ago (2015-03-12 16:00:44 UTC) #29
not at google - send to devlin
https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.cc#newcode137 chrome/browser/themes/theme_service.cc:137: ThemeService& theme_service_; nit: usually you would hold onto a ...
5 years, 9 months ago (2015-03-12 17:08:34 UTC) #30
not at google - send to devlin
https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.h#newcode196 chrome/browser/themes/theme_service.h:196: class ExtensionObserver; Also, I think ExtensionObserver could be better ...
5 years, 9 months ago (2015-03-12 17:10:55 UTC) #31
Lei Zhang
https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.h#newcode263 chrome/browser/themes/theme_service.h:263: extensions::ExtensionRegistry* extension_registry_; Maybe encapsulate this within ExtensionObserver?
5 years, 9 months ago (2015-03-12 21:07:23 UTC) #32
limasdf
Thanks much for the review. PTAL! https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/965233002/diff/140001/chrome/browser/themes/theme_service.cc#newcode137 chrome/browser/themes/theme_service.cc:137: ThemeService& theme_service_; On ...
5 years, 9 months ago (2015-03-13 03:01:54 UTC) #33
Lei Zhang
https://codereview.chromium.org/965233002/diff/160001/chrome/browser/themes/theme_syncable_service_unittest.cc File chrome/browser/themes/theme_syncable_service_unittest.cc (right): https://codereview.chromium.org/965233002/diff/160001/chrome/browser/themes/theme_syncable_service_unittest.cc#newcode98 chrome/browser/themes/theme_syncable_service_unittest.cc:98: void Shutdown() override {} Is this needed?
5 years, 9 months ago (2015-03-13 03:21:07 UTC) #34
limasdf
Thanks :) https://codereview.chromium.org/965233002/diff/160001/chrome/browser/themes/theme_syncable_service_unittest.cc File chrome/browser/themes/theme_syncable_service_unittest.cc (right): https://codereview.chromium.org/965233002/diff/160001/chrome/browser/themes/theme_syncable_service_unittest.cc#newcode98 chrome/browser/themes/theme_syncable_service_unittest.cc:98: void Shutdown() override {} On 2015/03/13 03:21:07, ...
5 years, 9 months ago (2015-03-13 04:51:34 UTC) #35
not at google - send to devlin
lgtm. I can see some other things to potentially clean up, but not worth spending ...
5 years, 9 months ago (2015-03-13 17:01:44 UTC) #36
Lei Zhang
On 2015/03/13 17:01:44, kalman wrote: > lgtm. I can see some other things to potentially ...
5 years, 9 months ago (2015-03-13 21:09:53 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/965233002/220001
5 years, 9 months ago (2015-03-13 21:10:44 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:220001)
5 years, 9 months ago (2015-03-13 21:57:19 UTC) #41
commit-bot: I haz the power
5 years, 9 months ago (2015-03-13 21:58:25 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/96f0702b9e5ff97bf1870b7ac7e614c2358a78aa
Cr-Commit-Position: refs/heads/master@{#320587}

Powered by Google App Engine
This is Rietveld 408576698