From b522d5b45230fb31e9d979b61e2684cdefb21a30 Mon Sep 17 00:00:00 2001 From: "ayush.k123" Date: Mon, 30 Jan 2023 16:39:19 +0530 Subject: [PATCH] [M108 Migration] Disable tracing ui(chrome://tracing) 'chrome://tracing' ui is for desktop browser, not tizen. Reference: https://review.tizen.org/gerrit/279239/ Change-Id: I41ea63a7a22084cfd78872ed815b74c0e5bbdd13 Signed-off-by: Ayush Kumar --- content/browser/BUILD.gn | 3 +++ content/browser/webui/content_web_ui_configs.cc | 4 ++-- tizen_src/chromium_impl/content/browser/browser_efl.gni | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn index 814306a..49f3149 100644 --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn @@ -2649,6 +2649,9 @@ source_set("browser") { "network_sandbox.h", ] } + if (is_tizen) { + deps -= [ "//content/browser/tracing:resources" ] + } # Desktop/Window/WebContents screen capture implementations, conditionally # built depending on the available implementations for each platform. diff --git a/content/browser/webui/content_web_ui_configs.cc b/content/browser/webui/content_web_ui_configs.cc index 9309769..a29aeb0 100644 --- a/content/browser/webui/content_web_ui_configs.cc +++ b/content/browser/webui/content_web_ui_configs.cc @@ -21,7 +21,7 @@ #include "content/browser/webrtc/webrtc_internals_ui.h" #include "content/public/browser/webui_config_map.h" -#if !BUILDFLAG(IS_ANDROID) +#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_TIZEN) #include "content/browser/tracing/tracing_ui.h" #endif @@ -43,7 +43,7 @@ void RegisterContentWebUIConfigs() { map.AddWebUIConfig(std::make_unique()); map.AddWebUIConfig(std::make_unique()); -#if !BUILDFLAG(IS_ANDROID) +#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_TIZEN) map.AddWebUIConfig(std::make_unique()); #endif } diff --git a/tizen_src/chromium_impl/content/browser/browser_efl.gni b/tizen_src/chromium_impl/content/browser/browser_efl.gni index 5338162..5056150 100644 --- a/tizen_src/chromium_impl/content/browser/browser_efl.gni +++ b/tizen_src/chromium_impl/content/browser/browser_efl.gni @@ -118,7 +118,8 @@ external_content_browser_efl_sources += [ if (is_tizen) { external_exclude_content_browser_efl_sources = [ - # "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc" + "tracing/tracing_ui.cc", + "tracing/tracing_ui.h", ] external_content_browser_efl_sources += [ -- 2.7.4