Revert "[Tizen] Parse arguement in TizenWebEngineLWE::Create to know preferred version"
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 25 Sep 2024 10:10:10 +0000 (19:10 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Wed, 25 Sep 2024 10:10:10 +0000 (19:10 +0900)
This reverts commit d8728861539d51b33773cc5a0cf3dbb504d6fd23.

dali-extension/web-engine-lwe/tizen-web-engine-lwe.cpp

index f8768c0..10dcb2e 100755 (executable)
@@ -389,18 +389,7 @@ static std::string Timezone()
 
 void TizenWebEngineLWE::Create(uint32_t width, uint32_t height, uint32_t argc, char** argv)
 {
-  for (uint32_t idx = 0; idx < argc; ++idx)
-  {
-    if (strstr(argv[idx], "--prefer-updated-version"))
-    {
-      LWE::LWE::SetVersionPreference(true);
-    }
-    else if(strstr(argv[idx], "--prefer-platform-version"))
-    {
-      LWE::LWE::SetVersionPreference(false);
-    }
-  }
-  Create(width, height, Langset(), Timezone());
+    Create(width, height, Langset(), Timezone());
 }
 
 void TizenWebEngineLWE::Create(uint32_t width, uint32_t height, const std::string& locale, const std::string& timezoneId)
@@ -427,6 +416,7 @@ void TizenWebEngineLWE::Create(uint32_t width, uint32_t height, const std::strin
 
   if (!LWE::LWE::IsInitialized())
   {
+    LWE::LWE::SetVersionPreference(true);
     std::string dataPath = DevelApplication::GetDataPath();
     LWE::LWE::Initialize((dataPath + "/StarFishStorage").c_str());