call PathEfl::Register from efl::Initialize
authorArnaud Renevier <a.renevier@samsung.com>
Tue, 2 Jun 2015 17:42:19 +0000 (10:42 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Currently, PathEfl::Register is called from Shell::PlatformInitialize

But other non applications, like crosswalk will also need to Register
PathEfl. So with this patch, we call it from efl::Initialize

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I50dd66ce4c8654168cca63ce63b3ed0e24717666
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
tizen_src/chromium_impl/content/shell/browser/shell_efl.cc
tizen_src/chromium_impl/efl/init.cc

index 84b2464..b689f28 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "base/command_line.h"
 #include "base/strings/utf_string_conversions.h"
-#include "content/common/paths_efl.h"
 #include "content/public/browser/web_contents.h"
 #include "content/public/common/content_switches.h"
 #include "content/public/browser/render_view_host.h"
@@ -175,7 +174,6 @@ void OnShellWindowDelRequest(void* data, Evas_Object*, void*) {
 // static
 void Shell::PlatformInitialize(const gfx::Size& default_window_size) {
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
-  PathsEfl::Register();
   LOG(INFO) << "EFL Shell platform initialized";
 }
 
index 1933afa..2c5bc96 100644 (file)
@@ -12,6 +12,7 @@
 #include "base/message_loop/message_loop.h"
 #include "base/message_loop/message_pump_ecore.h"
 #include "cc/base/switches.h"
+#include "content/common/paths_efl.h"
 #include "content/public/common/content_switches.h"
 #include "ui/gfx/screen_efl.h"
 #include "ui/gfx/switches.h"
@@ -53,6 +54,8 @@ int Initialize(int argc, const char* argv[]) {
   ui::OzonePlatform::InitializeForUI();
 #endif
 
+  PathsEfl::Register();
+
   return 0;
 }