fixup! [M120 Migration] Add new api for webbrowser to get media device list 57/308357/2
authorzhishun.zhou <zhishun.zhou@samsung.com>
Fri, 22 Mar 2024 03:54:39 +0000 (11:54 +0800)
committerYanqing Lu <yanqing.lu@samsung.com>
Fri, 22 Mar 2024 05:48:07 +0000 (05:48 +0000)
Fix link error when build with "--build-chrome":
  ld.lld: error: undefined symbol: content::IsWebBrowser()
  ld.lld: error: undefined symbol: switches::kTizenAppId

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

index 880e009..5e58928 100644 (file)
@@ -51,7 +51,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 {
@@ -1031,7 +1031,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 6d62cd9..1e42c3d 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