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

Issue 566573004: Remove deprecated extension notification from themeservice.

Created:
6 years, 3 months ago by Jitu( very slow this week)
Modified:
5 years, 10 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

This patch used EntensionRegistryObserver instead of DEPRECATED extension notification. Now below DEPRECATED notifications removed. -- NOTIFICATION_EXTENSION_LOADED_DEPRECATED -- NOTIFICATION_EXTENSION_WILL_BE_INSTALLED_DEPRECATED -- NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED BUG=411568

Patch Set 1 #

Patch Set 2 : added namespace #

Patch Set 3 : fix build error #

Total comments: 4

Patch Set 4 : Fixed indentation #

Total comments: 11

Patch Set 5 : Fix the review comments #

Total comments: 1

Patch Set 6 : Added ExtensionRegistry as a dependency of ThemeService #

Patch Set 7 : Fixed build errors #

Total comments: 1

Patch Set 8 : Fix unittest error and review comments #

Total comments: 7

Patch Set 9 : Fix review comments #

Total comments: 6

Patch Set 10 : fix #

Patch Set 11 : #

Patch Set 12 : Rebased #

Patch Set 13 : Rebased #

Patch Set 14 : Rebased #

Patch Set 15 : Fixed unittest failed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -40 lines) Patch
M chrome/browser/themes/theme_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +38 lines, -38 lines 0 comments Download
M chrome/browser/themes/theme_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
Jitu( very slow this week)
PTAL...
6 years, 3 months ago (2014-09-12 15:28:57 UTC) #2
Bernhard Bauer
As I already mentioned in https://codereview.chromium.org/566863002/, please remove [WIP] from the CL if you are ...
6 years, 3 months ago (2014-09-12 16:05:46 UTC) #3
Jitu( very slow this week)
6 years, 3 months ago (2014-09-15 05:24:27 UTC) #5
Jitu( very slow this week)
PTAL https://codereview.chromium.org/566573004/diff/40001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/40001/chrome/browser/themes/theme_service.cc#newcode280 chrome/browser/themes/theme_service.cc:280: if (extension->is_theme() && installed_pending_load_id_ != kDefaultThemeID && On ...
6 years, 3 months ago (2014-09-15 07:13:11 UTC) #6
pkotwicz
I will take a look at this CL tomorrow
6 years, 3 months ago (2014-09-16 04:12:55 UTC) #7
pkotwicz
LGTM with nits https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc#newcode103 chrome/browser/themes/theme_service.cc:103: extension_registry_ = extensions::ExtensionRegistry::Get(profile_); I am unsure ...
6 years, 3 months ago (2014-09-16 15:18:25 UTC) #8
Jitu( very slow this week)
Fixed the comments https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.h#newcode81 chrome/browser/themes/theme_service.h:81: // Overridden from ui::ThemeProvider: On 2014/09/16 ...
6 years, 3 months ago (2014-09-24 11:48:16 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc#newcode103 chrome/browser/themes/theme_service.cc:103: extension_registry_ = extensions::ExtensionRegistry::Get(profile_); On 2014/09/16 15:18:25, pkotwicz wrote: > ...
6 years, 3 months ago (2014-09-24 13:06:42 UTC) #10
Jitu( very slow this week)
On 2014/09/24 13:06:42, Bernhard Bauer wrote: > https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc > File chrome/browser/themes/theme_service.cc (right): > > https://codereview.chromium.org/566573004/diff/60001/chrome/browser/themes/theme_service.cc#newcode103 ...
6 years, 3 months ago (2014-09-24 14:23:51 UTC) #11
Bernhard Bauer
On 2014/09/24 14:23:51, Jitu (slow this week) wrote: > On 2014/09/24 13:06:42, Bernhard Bauer wrote: ...
6 years, 3 months ago (2014-09-24 14:40:47 UTC) #12
Jitu( very slow this week)
PTAL
6 years, 2 months ago (2014-09-26 14:15:13 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/566573004/diff/160001/chrome/browser/themes/theme_service.h File chrome/browser/themes/theme_service.h (right): https://codereview.chromium.org/566573004/diff/160001/chrome/browser/themes/theme_service.h#newcode119 chrome/browser/themes/theme_service.h:119: virtual void Shutdown() OVERRIDE; Please add a comment that ...
6 years, 2 months ago (2014-09-26 15:21:11 UTC) #16
Jitu( very slow this week)
Fixed the review comments and the unit test fail errors. PTAL
6 years, 2 months ago (2014-10-06 13:30:00 UTC) #18
Jitu( very slow this week)
@pkotwicz, PTAL
6 years, 2 months ago (2014-10-08 10:13:28 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc#newcode269 chrome/browser/themes/theme_service.cc:269: if (extension->is_theme() && installed_pending_load_id_ != kDefaultThemeID && Please put ...
6 years, 2 months ago (2014-10-15 12:32:46 UTC) #20
Jitu( very slow this week)
PTAL https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc#newcode269 chrome/browser/themes/theme_service.cc:269: if (extension->is_theme() && installed_pending_load_id_ != kDefaultThemeID && On ...
6 years, 2 months ago (2014-10-15 13:01:12 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/200001/chrome/browser/themes/theme_service.cc#newcode298 chrome/browser/themes/theme_service.cc:298: if (extension_registry_) { On 2014/10/15 13:01:12, (slow this week) ...
6 years, 2 months ago (2014-10-15 13:21:05 UTC) #22
Jitu( very slow this week)
PTAL https://codereview.chromium.org/566573004/diff/220001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/220001/chrome/browser/themes/theme_service.cc#newcode281 chrome/browser/themes/theme_service.cc:281: if (reason != UnloadedExtensionInfo::REASON_UPDATE && extension->is_theme() && On ...
6 years, 2 months ago (2014-10-15 14:19:06 UTC) #24
Bernhard Bauer
https://codereview.chromium.org/566573004/diff/220001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/566573004/diff/220001/chrome/browser/themes/theme_service.cc#newcode281 chrome/browser/themes/theme_service.cc:281: if (reason != UnloadedExtensionInfo::REASON_UPDATE && extension->is_theme() && On 2014/10/15 ...
6 years, 2 months ago (2014-10-15 14:23:27 UTC) #25
Jitu( very slow this week)
PTAL It was my mistake, after changes i gave git cl format which again changed ...
6 years, 2 months ago (2014-10-15 14:34:09 UTC) #26
Bernhard Bauer
lgtm
6 years, 2 months ago (2014-10-15 14:43:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/566573004/280001
6 years, 2 months ago (2014-10-15 14:55:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/79335) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/23837)
6 years, 2 months ago (2014-10-15 14:58:31 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/566573004/320001
6 years, 2 months ago (2014-10-16 05:05:08 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/26125)
6 years, 2 months ago (2014-10-16 06:05:40 UTC) #35
Jitu( very slow this week)
On 2014/10/16 06:05:40, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-16 10:13:27 UTC) #36
Bernhard Bauer
6 years, 2 months ago (2014-10-16 15:21:45 UTC) #37
On 2014/10/16 10:13:27, (slow this week) wrote:
> On 2014/10/16 06:05:40, I haz the power (commit-bot) wrote:
> > Try jobs failed on following builders:
> >   linux_chromium_rel_swarming on tryserver.chromium.linux
> >
>
(http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
> Hi,
> 
> This patch is failed while RemoveObserver(), But i observe different callstack
> for different build.
> 
> #0 0x000002a33865 base::debug::(anonymous namespace)::StackDumpSignalHandler()
> #1 0x7f4381f98cb0 \u003Cunknown>
> #2 0x0000009550a7 ObserverListBase\u003C>::RemoveObserver()
> #3 0x000004f61a4d
> BrowserContextDependencyManager::DestroyBrowserContextServices()
> #4 0x00000269b3b7 TestingProfile::~TestingProfile()
> #5 0x0000009f61c9
>
extensions::DefaultAppsTest_Install_Test::TestBody()::DefaultTestingProfile::~DefaultTestingProfile()
> #6 0x00000166c2e1 ThemeSyncableServiceTest::TearDown()
> #7 0x00000265c70e testing::TestInfo::Run()
> #8 0x00000265cbd3 testing::TestCase::Run()
> #9 0x0000026646e9 testing::internal::UnitTestImpl::RunAllTests()
> #10 0x00000266438e testing::UnitTest::Run()
> #11 0x0000056d1adf base::TestSuite::Run()
> #12 0x0000056ce4fa base::(anonymous namespace)::LaunchUnitTestsInternal()
> #13 0x0000056ce2e3 base::LaunchUnitTests()
> #14 0x0000026b8862 main
> #15 0x7f438031b76d __libc_start_main
> #16 0x0000004a2f01 \u003Cunknown>
> 
> =================================
>     #0 0xbe6e45c in end third_party/libc++/trunk/include/vector:1476:12
>     #1 0xbe6e45c in RemoveObserver base/observer_list.h:168
>     #2 0xbe6e45c in
> OmniboxPopupModel::RemoveObserver(OmniboxPopupModelObserver*)
> chrome/browser/ui/omnibox/omnibox_popup_model.cc:294
>     #3 0xd9908ff in
>
BrowserContextDependencyManager::DestroyBrowserContextServices(content::BrowserContext*)
> components/keyed_service/content/browser_context_dependency_manager.cc:118:5
>     #4 0x5447493 in TestingProfile::~TestingProfile()
> chrome/test/base/testing_profile.cc:440:3
>     #5 0x110b3ed in
>
extensions::DefaultAppsTest_Install_Test::TestBody()::DefaultTestingProfile::~DefaultTestingProfile()
> chrome/browser/extensions/default_apps_unittest.cc:75:9
>     #6 0x2bbe21c in operator() base/memory/scoped_ptr.h:137:5
>     #7 0x2bbe21c in reset base/memory/scoped_ptr.h:257
>     #8 0x2bbe21c in reset base/memory/scoped_ptr.h:386
>     #9 0x2bbe21c in ThemeSyncableServiceTest::TearDown()
> chrome/browser/themes/theme_syncable_service_unittest.cc:164
>     #10 0x537c7d0 in testing::TestInfo::Run()
testing/gtest/src/gtest.cc:2610:5
>     #11 0x537d935 in testing::TestCase::Run()
testing/gtest/src/gtest.cc:2728:5
>     #12 0x53915fe in testing::internal::UnitTestImpl::RunAllTests()
> testing/gtest/src/gtest.cc:4591:11
>     #13 0x5390bf9 in
> HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl,
bool>
> testing/gtest/src/gtest.cc:2418:12
>     #14 0x5390bf9 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:4209
>     #15 0xeea61f6 in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2304:10
>     #16 0xeea61f6 in base::TestSuite::Run() base/test/test_suite.cc:226
>     #17 0xee9f594 in Run base/callback.h:401:12
>     #18 0xee9f594 in base::(anonymous
> namespace)::LaunchUnitTestsInternal(base::Callback\u003Cint ()> const&, int,
> bool, base::Callback\u003Cvoid ()> const&)
> base/test/launcher/unit_test_launcher.cc:498
>     #19 0xee9f05b in base::LaunchUnitTests(int, char**,
base::Callback\u003Cint
> ()> const&) base/test/launcher/unit_test_launcher.cc:553:10
>     #20 0x54933c1 in main chrome/test/base/run_all_unittests.cc:15:10
>     #21 0x7f9b4d65276c in __libc_start_main
> /build/buildd/eglibc-2.15/csu/libc-start.c:226
>     #22 0x52da6c in _start
> (/tmp/run_tha_testcoGB40/out/Release/unit_tests+0x52da6c)
> 
> =============================
>         app_list::SearchBoxModel::RemoveObserver [0x04647B56+6]

If you mean this, this is most likely a red herring. MSVC++ coalesces identical
methods to save space, but this results in wrong debug symbols. It also fairly
aggressively inlines method calls, which might explain why you don't see
ThemeService::Shutdown in some of the stacks above.

> 	ThemeService::Shutdown [0x02492BB6+22]
> 	BrowserContextDependencyManager::DestroyBrowserContextServices
[0x047B2604+148]
> 	TestingProfile::~TestingProfile [0x027ACC4A+74]
> 	TestingProfile::`scalar deleting destructor' [0x01600F5B+11]
> 	ThemeSyncableServiceTest::TearDown [0x01D0290D+29]
> 	testing::TestCase::Run [0x027A1DE9+233]
> 	testing::internal::UnitTestImpl::RunAllTests [0x027A23B9+649]
> 	testing::UnitTest::Run [0x027A2106+214]
> 	base::TestSuite::Run [0x04EE9A9D+189]
> 	base::`anonymous namespace'::LaunchUnitTestsInternal [0x04EEF217+663]
> 	base::LaunchUnitTests [0x04EEEF6A+106]
> 	main [0x04F1B7F2+130]
> 	__tmainCRTStartup [0x04E04965+254]
> (f:\dd\vctools\crt\crtw32\startup\crt0.c:255)
> 	BaseThreadInitThunk [0x7534338A+18]
> 	RtlInitializeExceptionChain [0x774F9F72+99]
> 	RtlInitializeExceptionChain [0x774F9F45+54]
> 
> Any clue for this.

Powered by Google App Engine
This is Rietveld 408576698