[M108 Migration] Disable tracing ui(chrome://tracing) 31/287531/2
authorayush.k123 <ayush.k123@samsung.com>
Mon, 30 Jan 2023 11:09:19 +0000 (16:39 +0530)
committerAyush Kumar <ayush.k123@samsung.com>
Tue, 31 Jan 2023 06:07:15 +0000 (11:37 +0530)
'chrome://tracing' ui is for desktop browser, not tizen.

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

Change-Id: I41ea63a7a22084cfd78872ed815b74c0e5bbdd13
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
content/browser/BUILD.gn
content/browser/webui/content_web_ui_configs.cc
tizen_src/chromium_impl/content/browser/browser_efl.gni

index 814306a..49f3149 100644 (file)
@@ -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.
index 9309769..a29aeb0 100644 (file)
@@ -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<UkmInternalsUIConfig>());
   map.AddWebUIConfig(std::make_unique<WebRTCInternalsUIConfig>());
 
-#if !BUILDFLAG(IS_ANDROID)
+#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_TIZEN)
   map.AddWebUIConfig(std::make_unique<TracingUIConfig>());
 #endif
 }
index 5338162..5056150 100644 (file)
@@ -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 += [