fixup! ozone integration
authorAntonio Gomes <a1.gomes@samsung.com>
Fri, 29 May 2015 17:00:08 +0000 (13:00 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commit94fc3041dec32400e49d82cd19c080adee492e3f
treefec01b3844926f60144f625c11f9c20dd279eb10
parentc71418f2d135616fc8c9a6d86421c6362c71ce36
fixup! ozone integration

Since http://165.213.202.130/gerrit/#/c/80317/ we
hit the follow ASSERT upon launch (desktop debug build
of ubrowser --mobile).

[0529/105606:FATAL:at_exit.cc(53)] Check failed: false. Tried to RegisterCallback without an AtExitManager
 #0 0x7fee4c9d7037 base::debug::StackTrace::StackTrace()
 #1 0x7fee4ca15373 logging::LogMessage::~LogMessage()
 #2 0x7fee4c9c9ff1 base::AtExitManager::RegisterTask()
 #3 0x7fee4dcf0f56 ui::DeviceDataManager::DeviceDataManager()
 #4 0x7fee4dcf1197 ui::DeviceDataManager::CreateInstance()
 #5 0x7fee4dd09ca5 ui::OzonePlatform::InitializeForUI()
 #6 0x7fee4ba14c64 EwkGlobalData::GetInstance()
 #7 0x7fee4b9d4d83 EWebContext::EWebContext()
 #8 0x7fee4bab0d29 Ewk_Context::Ewk_Context()
 #9 0x7fee4bab0b6b Ewk_Context::Create()
 #10 0x7fee4bab09b2 Ewk_Context::DefaultContext()
 #11 0x7fee4baba2f5 ewk_context_default_get
 #12 0x000000407c00 Browser::Browser()
 #13 0x00000040c167 app_create()
 #14 0x00000040c43e main
 #15 0x7fee49591ec5 __libc_start_main

AtExitManager has to be init'ed before frame #5,
or AtExitManager could be declared as a local variable in 'main'.

In our code, the initialization happens in the lines right below
the call to OzonePlatform::InitializeForUI.
See content/app/content_main_runner.cc@Initialize.

Patch flips those lines in order to fix the ASSERT.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=8054
Reviewed by: Balazs Kelemen, arno renevier

Change-Id: Ib4705a858f10561d86f5779e99a661fe37edf4c8
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
tizen_src/ewk/efl_integration/ewk_global_data.cc