[M126 Migration] fixup! [M120 Migration] Add new api for webbrowser to get media... 44/316744/1
authorv-saha <v.saha@samsung.com>
Tue, 27 Aug 2024 13:13:54 +0000 (18:43 +0530)
committerv-saha <v.saha@samsung.com>
Tue, 27 Aug 2024 13:13:54 +0000 (18:43 +0530)
Fix link error when build with "--build-chrome":
  ld.lld: error: undefined symbol: content::IsWebBrowser()
  ld.lld: error: undefined symbol: switches::kTizenAppId

Reference: https://review.tizen.org/gerrit/308357

Change-Id: Ia979f494b56b9a4e6c0b7b56be8f31e46c413c39
Signed-off-by: v-saha <v.saha@samsung.com>
content/browser/renderer_host/media/media_devices_manager.cc
tizen_src/chromium_impl/media/filters/esplusplayer_util.cc

index 3a6e3ac8b4bf0cdd0712b9cb64a548eb3996ef6a..8de35b212b0a95cde8669aff53b5b253aff08736 100644 (file)
@@ -54,7 +54,7 @@
 #endif
 
 #if BUILDFLAG(IS_TIZEN_TV)
-#include "tizen_src/ewk/efl_integration/common/application_type.h"
+#include "third_party/blink/public/platform/web_application_type.h"
 #endif
 
 namespace content {
@@ -1108,7 +1108,7 @@ void MediaDevicesManager::DevicesEnumerated(
 
 #if BUILDFLAG(IS_TIZEN_TV)
   // report device list to webbrowser
-  if (IsWebBrowser() && !enum_cb_.is_null()) {
+  if (blink::IsWebBrowser() && !enum_cb_.is_null()) {
     got_result_[static_cast<size_t>(type)] = true;
 
     for (const auto& device : snapshot) {
index 6d62cd9f86bb8a7b67cc931c6e9d43e83e24c8ee..1e42c3d0a6e9f542b7e00937f3abeb7dfbd7ee92 100644 (file)
@@ -219,9 +219,13 @@ gfx::Size GetDynamicMaxCodecResolution() {
   int max_width = 0;
   int max_height = 0;
   int max_framerate = 0;
+#if !defined(BUILD_CHROME)
   std::string app_id =
       base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
           switches::kTizenAppId);
+#else
+  std::string app_id = "";
+#endif
 
   // resource center returns decodeer ability not resolution (ex.1088)
   // http://wiki.vd.sec.samsung.net/display/OSS/02.+Max+Resolution