2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00

chromium: update package

This commit is contained in:
Dylan Araps 2019-07-30 18:10:35 +03:00
parent c81b17388b
commit 65302c3e0e
6 changed files with 677 additions and 0 deletions

View File

@ -85,6 +85,10 @@ python2 build/linux/unbundle/replace_gn_files.py \
python2 tools/gn/bootstrap/bootstrap.py -s -v --gn-gen-args "$*"
# All shells seem to support this despite the lack of a POSIX spec for it.
# shellcheck disable=2039
ulimit -n 2048 ||:
out/Release/gn gen out/Release \
--script-executable=/usr/bin/python2

View File

@ -67,3 +67,6 @@ b07a4903f150da643320012880622b6d52c0ccf1e85d3425240188277ee546ef perfetto.patch
5f8d6876420bd9a5c208d432a82a4faa78f43d24fe5b425a8f6a0a475bc4e8dd safe_browsing-disable-reporting-of-safebrowsing-over.patch
3f55f3ed81f4d967b8eb45655ddbdd3a59da3d69dbf1999a9335b199c84d1c9d unrar.patch
815a2a41003747bb6b44df192af4650e9ea0fe2dc87bb689a9bbb6e7a2c3eddd welcome-page.patch
8b38fbcb81d67f0437aa3d332de13fb9b090ca8da1f08472795d6bdbf2a4ed5a disable_installer.patch
9058162657672162964d2f35431c208d1cfae12325858ff636044d667e9dcaf5 disable_swiftshader.patch
714a8eff76b47a9e0488f2d5c246ce43d5d28ce475aecdcfc0d1b1e222ff120e disable_tracing.patch

View File

@ -0,0 +1,13 @@
description: avoid building chromium's installer, which is unused in debian
author: Michael Gilbert <mgilbert@debian.org>
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -66,7 +66,6 @@ group("gn_all") {
":gn_visibility",
"//base:base_perftests",
"//base:base_unittests",
- "//chrome/installer",
"//net:net_unittests",
"//skia:skia_unittests",
"//sql:sql_unittests",

View File

@ -0,0 +1,14 @@
description: avoid building the swiftshader library
author: Michael Gilbert <mgilbert@debian.org>
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -449,7 +449,7 @@ group("gn_all") {
]
}
- if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
+ if (false &&
(target_cpu == "x86" || target_cpu == "x64")) {
deps += [ "//third_party/swiftshader" ]
}

View File

@ -0,0 +1,640 @@
description: disable tracing, it depends on too many sourceless javascript files
author: Michael Gilbert <mgilbert@debian.org>
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1599,14 +1599,6 @@ jumbo_split_static_library("browser") {
"thumbnails/thumbnail_utils.h",
"thumbnails/thumbnailing_context.cc",
"thumbnails/thumbnailing_context.h",
- "tracing/background_tracing_field_trial.cc",
- "tracing/background_tracing_field_trial.h",
- "tracing/chrome_tracing_delegate.cc",
- "tracing/chrome_tracing_delegate.h",
- "tracing/crash_service_uploader.cc",
- "tracing/crash_service_uploader.h",
- "tracing/navigation_tracing.cc",
- "tracing/navigation_tracing.h",
"translate/android/translate_utils.cc",
"translate/android/translate_utils.h",
"translate/chrome_translate_client.cc",
@@ -1874,7 +1866,6 @@ jumbo_split_static_library("browser") {
"//components/sync_preferences",
"//components/sync_sessions",
"//components/task_scheduler_util",
- "//components/tracing:startup_tracing",
"//components/translate/content/browser",
"//components/translate/core/browser",
"//components/translate/core/common",
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -60,8 +60,6 @@ jumbo_source_set("browser") {
"//components/rappor",
"//components/services/filesystem:lib",
"//components/services/leveldb:lib",
- "//components/tracing",
- "//components/tracing:startup_tracing",
"//components/ui_devtools",
"//components/url_formatter",
"//components/variations",
@@ -712,8 +710,6 @@ jumbo_source_set("browser") {
"devtools/protocol/target_handler.h",
"devtools/protocol/tethering_handler.cc",
"devtools/protocol/tethering_handler.h",
- "devtools/protocol/tracing_handler.cc",
- "devtools/protocol/tracing_handler.h",
"devtools/protocol_string.cc",
"devtools/protocol_string.h",
"devtools/render_frame_devtools_agent_host.cc",
@@ -1732,25 +1728,6 @@ jumbo_source_set("browser") {
"streams/stream_write_observer.h",
"theme_helper_mac.h",
"theme_helper_mac.mm",
- "tracing/background_memory_tracing_observer.cc",
- "tracing/background_memory_tracing_observer.h",
- "tracing/background_startup_tracing_observer.cc",
- "tracing/background_startup_tracing_observer.h",
- "tracing/background_tracing_config_impl.cc",
- "tracing/background_tracing_config_impl.h",
- "tracing/background_tracing_manager_impl.cc",
- "tracing/background_tracing_manager_impl.h",
- "tracing/background_tracing_rule.cc",
- "tracing/background_tracing_rule.h",
- "tracing/file_tracing_provider_impl.cc",
- "tracing/file_tracing_provider_impl.h",
- "tracing/trace_message_filter.cc",
- "tracing/trace_message_filter.h",
- "tracing/tracing_controller_impl.cc",
- "tracing/tracing_controller_impl.h",
- "tracing/tracing_controller_impl_data_endpoint.cc",
- "tracing/tracing_ui.cc",
- "tracing/tracing_ui.h",
"url_loader_factory_getter.cc",
"url_loader_factory_getter.h",
"utility_process_host.cc",
@@ -1960,7 +1937,6 @@ jumbo_source_set("browser") {
if (!is_android) {
deps += [
"//components/vector_icons",
- "//content/browser/tracing:resources",
]
}
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -515,7 +515,6 @@ repack("pak") {
sources = [
"$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
"$root_gen_dir/content/app/strings/content_strings_en-US.pak",
- "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/content/shell/shell_resources.pak",
"$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak",
@@ -533,7 +532,6 @@ repack("pak") {
"//content:resources",
"//content/app/resources",
"//content/app/strings",
- "//content/browser/tracing:resources",
"//mojo/public/js:resources",
"//net:net_resources",
"//third_party/blink/public:resources",
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -38,7 +38,6 @@ repack("pak") {
"$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
"$root_gen_dir/content/app/strings/content_strings_en-US.pak",
"$root_gen_dir/content/browser/devtools/devtools_resources.pak",
- "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/headless/headless_lib_resources.pak",
"$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak",
@@ -65,7 +64,6 @@ repack("pak") {
"//content/app/resources",
"//content/app/strings",
"//content/browser/devtools:resources",
- "//content/browser/tracing:resources",
"//mojo/public/js:resources",
"//net:net_resources",
"//third_party/blink/public:resources",
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -100,7 +100,6 @@ template("chrome_extra_paks") {
"$root_gen_dir/chrome/task_scheduler_internals_resources.pak",
"$root_gen_dir/chrome/translate_internals_resources.pak",
"$root_gen_dir/components/components_resources.pak",
- "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak",
"$root_gen_dir/net/net_resources.pak",
@@ -118,7 +117,6 @@ template("chrome_extra_paks") {
"//chrome/common:resources",
"//components/resources",
"//content:resources",
- "//content/browser/tracing:resources",
"//mojo/public/js:resources",
"//net:net_resources",
"//third_party/blink/public:resources",
--- a/content/browser/browser_child_process_host_impl.cc
+++ b/content/browser/browser_child_process_host_impl.cc
@@ -34,7 +34,6 @@
#include "content/browser/histogram_controller.h"
#include "content/browser/loader/resource_message_filter.h"
#include "content/browser/service_manager/service_manager_context.h"
-#include "content/browser/tracing/trace_message_filter.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/service_manager/child_connection.h"
#include "content/public/browser/browser_child_process_host_delegate.h"
@@ -163,7 +162,6 @@ BrowserChildProcessHostImpl::BrowserChil
data_.id = ChildProcessHostImpl::GenerateChildProcessUniqueId();
child_process_host_.reset(ChildProcessHost::Create(this));
- AddFilter(new TraceMessageFilter(data_.id));
g_child_process_list.Get().push_back(this);
GetContentClient()->browser()->BrowserChildProcessHostCreated(this);
--- a/content/public/browser/background_tracing_config.cc
+++ b/content/public/browser/background_tracing_config.cc
@@ -4,8 +4,6 @@
#include "content/public/browser/background_tracing_config.h"
-#include "content/browser/tracing/background_tracing_config_impl.h"
-
namespace content {
BackgroundTracingConfig::BackgroundTracingConfig(TracingMode tracing_mode)
@@ -15,7 +13,7 @@ BackgroundTracingConfig::~BackgroundTrac
std::unique_ptr<BackgroundTracingConfig> BackgroundTracingConfig::FromDict(
const base::DictionaryValue* dict) {
- return BackgroundTracingConfigImpl::FromDict(dict);
+ return nullptr;
}
} // namespace content
--- a/content/public/browser/background_tracing_config.h
+++ b/content/public/browser/background_tracing_config.h
@@ -34,7 +34,6 @@ class CONTENT_EXPORT BackgroundTracingCo
virtual void IntoDict(base::DictionaryValue* dict) const = 0;
private:
- friend class BackgroundTracingConfigImpl;
explicit BackgroundTracingConfig(TracingMode tracing_mode);
const TracingMode tracing_mode_;
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -89,8 +89,6 @@
#include "content/browser/speech/speech_recognition_manager_impl.h"
#include "content/browser/startup_data_impl.h"
#include "content/browser/startup_task_runner.h"
-#include "content/browser/tracing/background_tracing_manager_impl.h"
-#include "content/browser/tracing/tracing_controller_impl.h"
#include "content/browser/utility_process_host.h"
#include "content/browser/webrtc/webrtc_internals.h"
#include "content/browser/webui/content_web_ui_controller_factory.h"
@@ -1560,10 +1558,6 @@ void BrowserMainLoop::InitializeMojo() {
// know they're running in the same process as the service.
content::NavigableContentsView::SetClientRunningInServiceProcess();
- tracing_controller_ = std::make_unique<content::TracingControllerImpl>();
- content::BackgroundTracingManagerImpl::GetInstance()
- ->AddMetadataGeneratorFunction();
-
// Registers the browser process as a memory-instrumentation client, so
// that data for the browser process will be available in memory dumps.
service_manager::Connector* connector =
@@ -1573,29 +1567,6 @@ void BrowserMainLoop::InitializeMojo() {
memory_instrumentation::mojom::ProcessType::BROWSER);
memory_instrumentation::ClientProcessImpl::CreateInstance(config);
- // Start startup tracing through TracingController's interface. TraceLog has
- // been enabled in content_main_runner where threads are not available. Now We
- // need to start tracing for all other tracing agents, which require threads.
- auto* trace_startup_config = tracing::TraceStartupConfig::GetInstance();
- if (trace_startup_config->IsEnabled()) {
- // This checks kTraceConfigFile switch.
- TracingController::GetInstance()->StartTracing(
- trace_startup_config->GetTraceConfig(),
- TracingController::StartTracingDoneCallback());
- } else if (parsed_command_line_.HasSwitch(switches::kTraceToConsole)) {
- TracingController::GetInstance()->StartTracing(
- tracing::GetConfigForTraceToConsole(),
- TracingController::StartTracingDoneCallback());
- }
- // Start tracing to a file for certain duration if needed. Only do this after
- // starting the main message loop to avoid calling
- // MessagePumpForUI::ScheduleWork() before MessagePumpForUI::Start() as it
- // will crash the browser.
- if (trace_startup_config->IsTracingStartupForDuration()) {
- TRACE_EVENT0("startup", "BrowserMainLoop::InitStartupTracingForDuration");
- InitStartupTracingForDuration();
- }
-
if (parts_) {
parts_->ServiceManagerConnectionStarted(
ServiceManagerConnection::GetForProcess());
@@ -1636,14 +1607,7 @@ void BrowserMainLoop::InitStartupTracing
}
void BrowserMainLoop::EndStartupTracing() {
- // Do nothing if startup tracing is already stopped.
- if (!tracing::TraceStartupConfig::GetInstance()->IsEnabled())
- return;
-
- TracingController::GetInstance()->StopTracing(
- TracingController::CreateFileEndpoint(
- startup_trace_file_,
- base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
+ return;
}
void BrowserMainLoop::InitializeAudio() {
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -392,7 +392,6 @@ class CONTENT_EXPORT BrowserMainLoop {
std::unique_ptr<discardable_memory::DiscardableSharedMemoryManager>
discardable_shared_memory_manager_;
scoped_refptr<SaveFileManager> save_file_manager_;
- std::unique_ptr<content::TracingControllerImpl> tracing_controller_;
scoped_refptr<responsiveness::Watcher> responsiveness_watcher_;
#if !defined(OS_ANDROID)
// A SharedBitmapManager used to sharing and mapping IDs to shared memory
--- a/content/browser/devtools/browser_devtools_agent_host.cc
+++ b/content/browser/devtools/browser_devtools_agent_host.cc
@@ -20,7 +20,6 @@
#include "content/browser/devtools/protocol/system_info_handler.h"
#include "content/browser/devtools/protocol/target_handler.h"
#include "content/browser/devtools/protocol/tethering_handler.h"
-#include "content/browser/devtools/protocol/tracing_handler.h"
#include "content/browser/frame_host/frame_tree_node.h"
namespace content {
@@ -87,8 +86,6 @@ bool BrowserDevToolsAgentHost::AttachSes
session->AddHandler(std::make_unique<protocol::TetheringHandler>(
socket_callback_, tethering_task_runner_));
}
- session->AddHandler(
- std::make_unique<protocol::TracingHandler>(nullptr, GetIOContext()));
return true;
}
--- a/content/browser/devtools/render_frame_devtools_agent_host.cc
+++ b/content/browser/devtools/render_frame_devtools_agent_host.cc
@@ -34,7 +34,6 @@
#include "content/browser/devtools/protocol/service_worker_handler.h"
#include "content/browser/devtools/protocol/storage_handler.h"
#include "content/browser/devtools/protocol/target_handler.h"
-#include "content/browser/devtools/protocol/tracing_handler.h"
#include "content/browser/frame_host/navigation_handle_impl.h"
#include "content/browser/frame_host/navigation_request.h"
#include "content/browser/frame_host/render_frame_host_impl.h"
@@ -299,10 +298,6 @@ bool RenderFrameDevToolsAgentHost::Attac
session->AddHandler(base::WrapUnique(new protocol::PageHandler(
emulation_handler, session->client()->MayAffectLocalFiles())));
session->AddHandler(base::WrapUnique(new protocol::SecurityHandler()));
- if (!frame_tree_node_ || !frame_tree_node_->parent()) {
- session->AddHandler(base::WrapUnique(
- new protocol::TracingHandler(frame_tree_node_, GetIOContext())));
- }
if (sessions().empty()) {
bool use_video_capture_api = true;
@@ -363,8 +358,6 @@ void RenderFrameDevToolsAgentHost::Ready
NavigationHandle* navigation_handle) {
NavigationHandleImpl* handle =
static_cast<NavigationHandleImpl*>(navigation_handle);
- for (auto* tracing : protocol::TracingHandler::ForAgentHost(this))
- tracing->ReadyToCommitNavigation(handle);
if (handle->frame_tree_node() != frame_tree_node_) {
if (ShouldForceCreation() && handle->GetRenderFrameHost() &&
@@ -467,8 +460,6 @@ void RenderFrameDevToolsAgentHost::Rende
void RenderFrameDevToolsAgentHost::FrameDeleted(RenderFrameHost* rfh) {
RenderFrameHostImpl* host = static_cast<RenderFrameHostImpl*>(rfh);
- for (auto* tracing : protocol::TracingHandler::ForAgentHost(this))
- tracing->FrameDeleted(host);
if (host->frame_tree_node() == frame_tree_node_) {
DestroyOnRenderFrameGone();
// |this| may be deleted at this point.
@@ -714,8 +705,6 @@ void RenderFrameDevToolsAgentHost::Synch
if (!frame_trace_recorder_)
return;
bool did_initiate_recording = false;
- for (auto* tracing : protocol::TracingHandler::ForAgentHost(this))
- did_initiate_recording |= tracing->did_initiate_recording();
if (did_initiate_recording) {
frame_trace_recorder_->OnSynchronousSwapCompositorFrame(frame_host_,
frame_metadata);
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -138,7 +138,6 @@
#include "content/browser/site_instance_impl.h"
#include "content/browser/storage_partition_impl.h"
#include "content/browser/streams/stream_context.h"
-#include "content/browser/tracing/trace_message_filter.h"
#include "content/browser/webrtc/webrtc_internals.h"
#include "content/browser/websockets/websocket_manager.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
@@ -2014,7 +2013,6 @@ void RenderProcessHostImpl::CreateMessag
p2p_socket_dispatcher_host_ =
std::make_unique<P2PSocketDispatcherHost>(GetID());
- AddFilter(new TraceMessageFilter(GetID()));
AddFilter(new ResolveProxyMsgHelper(GetID()));
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context(
--- a/content/browser/webui/content_web_ui_controller_factory.cc
+++ b/content/browser/webui/content_web_ui_controller_factory.cc
@@ -13,7 +13,6 @@
#include "content/browser/net/network_errors_listing_ui.h"
#include "content/browser/process_internals/process_internals_ui.h"
#include "content/browser/service_worker/service_worker_internals_ui.h"
-#include "content/browser/tracing/tracing_ui.h"
#include "content/browser/webrtc/webrtc_internals_ui.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
@@ -76,7 +75,7 @@ ContentWebUIControllerFactory::CreateWeb
return std::make_unique<ServiceWorkerInternalsUI>(web_ui);
if (url.host_piece() == kChromeUINetworkErrorsListingHost)
return std::make_unique<NetworkErrorsListingUI>(web_ui);
-#if !defined(OS_ANDROID)
+#if 0
if (url.host_piece() == kChromeUITracingHost)
return std::make_unique<TracingUI>(web_ui);
#endif
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -94,8 +94,6 @@
#include "chrome/browser/resource_coordinator/render_process_probe.h"
#include "chrome/browser/sessions/chrome_serialized_navigation_driver.h"
#include "chrome/browser/shell_integration.h"
-#include "chrome/browser/tracing/background_tracing_field_trial.h"
-#include "chrome/browser/tracing/navigation_tracing.h"
#include "chrome/browser/translate/translate_service.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -1092,12 +1090,6 @@ int ChromeBrowserMainParts::PreCreateThr
base::Bind(&vr::VRServiceImpl::Create));
#endif
- // Enable Navigation Tracing only if a trace upload url is specified.
- if (parsed_command_line_.HasSwitch(switches::kEnableNavigationTracing) &&
- parsed_command_line_.HasSwitch(switches::kTraceUploadURL)) {
- tracing::SetupNavigationTracing();
- }
-
#if defined(OS_WIN) || defined(OS_MACOSX) || \
(defined(OS_LINUX) && !defined(OS_CHROMEOS))
metrics::DesktopSessionDurationTracker::Initialize();
@@ -1174,10 +1166,6 @@ void ChromeBrowserMainParts::PostCreateT
void ChromeBrowserMainParts::ServiceManagerConnectionStarted(
content::ServiceManagerConnection* connection) {
- // This should be called after the creation of the tracing controller. The
- // tracing controller is created when the service manager connection is
- // started.
- tracing::SetupBackgroundTracingFieldTrial();
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
chrome_extra_parts_[i]->ServiceManagerConnectionStarted(connection);
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -125,7 +125,6 @@
#include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h"
#include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
#include "chrome/browser/tab_contents/tab_util.h"
-#include "chrome/browser/tracing/chrome_tracing_delegate.h"
#include "chrome/browser/translate/translate_service.h"
#include "chrome/browser/ui/blocked_content/blocked_window_params.h"
#include "chrome/browser/ui/blocked_content/popup_blocker.h"
@@ -4269,7 +4268,7 @@ ChromeContentBrowserClient::GetDevToolsM
}
content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() {
- return new ChromeTracingDelegate();
+ return nullptr;
}
bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle(
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -60,7 +60,6 @@
#include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
#include "chrome/browser/ssl/ssl_config_service_manager.h"
#include "chrome/browser/task_manager/task_manager_interface.h"
-#include "chrome/browser/tracing/chrome_tracing_delegate.h"
#include "chrome/browser/ui/blocked_content/safe_browsing_triggered_popup_blocker.h"
#include "chrome/browser/ui/browser_ui_prefs.h"
#include "chrome/browser/ui/navigation_correction_tab_observer.h"
@@ -431,7 +430,6 @@ void RegisterLocalState(PrefRegistrySimp
BrowserProcessImpl::RegisterPrefs(registry);
ChromeContentBrowserClient::RegisterLocalStatePrefs(registry);
ChromeMetricsServiceClient::RegisterPrefs(registry);
- ChromeTracingDelegate::RegisterPrefs(registry);
component_updater::RegisterPrefs(registry);
ExternalProtocolHandler::RegisterPrefs(registry);
flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry);
--- a/chrome/browser/lifetime/browser_shutdown.cc
+++ b/chrome/browser/lifetime/browser_shutdown.cc
@@ -372,9 +372,6 @@ void StartShutdownTracing() {
if (command_line.HasSwitch(switches::kTraceShutdown)) {
base::trace_event::TraceConfig trace_config(
command_line.GetSwitchValueASCII(switches::kTraceShutdown), "");
- content::TracingController::GetInstance()->StartTracing(
- trace_config,
- content::TracingController::StartTracingDoneCallback());
}
TRACE_EVENT0("shutdown", "StartShutdownTracing");
}
--- a/chrome/browser/sessions/tab_loader.cc
+++ b/chrome/browser/sessions/tab_loader.cc
@@ -18,7 +18,6 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "components/favicon/content/content_favicon_driver.h"
-#include "content/public/browser/background_tracing_manager.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_features.h"
@@ -29,15 +28,6 @@ using resource_coordinator::TabLoadTrack
namespace {
void BackgroundTracingTrigger() {
- static content::BackgroundTracingManager::TriggerHandle trigger_handle_ = -1;
- if (trigger_handle_ == -1) {
- trigger_handle_ =
- content::BackgroundTracingManager::GetInstance()->RegisterTriggerType(
- "session-restore-config");
- }
- content::BackgroundTracingManager::GetInstance()->TriggerNamedEvent(
- trigger_handle_,
- content::BackgroundTracingManager::StartedFinalizingCallback());
}
const base::TickClock* GetDefaultTickClock() {
--- a/components/feedback/tracing_manager.cc
+++ b/components/feedback/tracing_manager.cc
@@ -10,7 +10,6 @@
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/feedback/feedback_util.h"
-#include "content/public/browser/tracing_controller.h"
namespace {
@@ -43,10 +42,6 @@ int TracingManager::RequestTrace() {
current_trace_id_ = g_next_trace_id;
++g_next_trace_id;
- content::TracingController::GetInstance()->StopTracing(
- content::TracingController::CreateStringEndpoint(
- base::Bind(&TracingManager::OnTraceDataCollected,
- weak_ptr_factory_.GetWeakPtr())));
return current_trace_id_;
}
@@ -89,9 +84,6 @@ void TracingManager::DiscardTraceData(in
}
void TracingManager::StartTracing() {
- content::TracingController::GetInstance()->StartTracing(
- base::trace_event::TraceConfig(),
- content::TracingController::StartTracingDoneCallback());
}
void TracingManager::OnTraceDataCollected(
--- a/chrome/browser/profiling_host/profiling_process_host.cc
+++ b/chrome/browser/profiling_host/profiling_process_host.cc
@@ -20,7 +20,6 @@
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/tracing/crash_service_uploader.h"
#include "components/heap_profiling/supervisor.h"
#include "components/services/heap_profiling/public/cpp/controller.h"
#include "components/services/heap_profiling/public/cpp/settings.h"
@@ -46,21 +45,6 @@ const char kConfigCategoryKey[] = "categ
const char kConfigCategoryMemlog[] = "MEMLOG";
const char kOOPHeapProfilingUploadUrl[] = "upload_url";
-void OnTraceUploadComplete(TraceCrashServiceUploader* uploader,
- bool success,
- const std::string& feedback) {
- UMA_HISTOGRAM_BOOLEAN("OutOfProcessHeapProfiling.UploadTrace.Success",
- success);
-
- if (!success) {
- LOG(ERROR) << "Cannot upload trace file: " << feedback;
- return;
- }
-
- // The reports is successfully sent. Reports the crash-id to ease debugging.
- LOG(WARNING) << "slow-reports sent: '" << feedback << '"';
-}
-
void UploadTraceToCrashServer(std::string upload_url,
std::string file_contents,
std::string trigger_name,
@@ -89,16 +73,6 @@ void UploadTraceToCrashServer(std::strin
std::make_unique<base::DictionaryValue>();
metadata->SetKey("config", std::move(configs));
metadata->SetKey(kConfigScenarioName, base::Value("MEMLOG"));
-
- TraceCrashServiceUploader* uploader = new TraceCrashServiceUploader(
- g_browser_process->shared_url_loader_factory());
- if (!upload_url.empty())
- uploader->SetUploadURL(upload_url);
-
- uploader->DoUpload(file_contents, content::TraceUploader::COMPRESSED_UPLOAD,
- std::move(metadata),
- content::TraceUploader::UploadProgressCallback(),
- base::Bind(&OnTraceUploadComplete, base::Owned(uploader)));
}
} // namespace
--- a/components/heap_profiling/test_driver.cc
+++ b/components/heap_profiling/test_driver.cc
@@ -26,7 +26,6 @@
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
-#include "content/public/browser/tracing_controller.h"
#include "content/public/common/service_manager_connection.h"
namespace heap_profiling {
--- a/components/heap_profiling/supervisor.cc
+++ b/components/heap_profiling/supervisor.cc
@@ -12,7 +12,6 @@
#include "components/services/heap_profiling/public/cpp/settings.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/tracing_controller.h"
#include "content/public/common/service_manager_connection.h"
#include "services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.h"
#include "services/service_manager/public/cpp/connector.h"
@@ -123,6 +122,9 @@ void Supervisor::RequestTraceWithHeapDum
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
DCHECK(HasStarted());
+ return;
+
+ /*
if (content::TracingController::GetInstance()->IsTracing()) {
DLOG(ERROR) << "Requesting heap dump when tracing has already started.";
base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -173,6 +175,7 @@ void Supervisor::RequestTraceWithHeapDum
GetBackgroundTracingConfig(anonymize),
base::AdaptCallbackForRepeating(std::move(trigger_memory_dump_callback)));
DCHECK(result);
+ */
}
void Supervisor::StartServiceOnIOThread(
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -53,7 +53,6 @@
#include "chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h"
#include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory.h"
#include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
-#include "chrome/browser/tracing/navigation_tracing.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/bloated_renderer/bloated_renderer_tab_helper.h"
@@ -86,7 +85,6 @@
#include "components/offline_pages/buildflags/buildflags.h"
#include "components/password_manager/core/browser/password_manager.h"
#include "components/subresource_filter/core/browser/subresource_filter_features.h"
-#include "components/tracing/common/tracing_switches.h"
#include "components/ukm/content/source_url_recorder.h"
#include "content/public/browser/web_contents.h"
#include "extensions/buildflags/buildflags.h"
@@ -356,9 +354,6 @@ offline_pages::AutoFetchPageLoadWatcher:
if (predictors::LoadingPredictorFactory::GetForProfile(profile))
predictors::LoadingPredictorTabHelper::CreateForWebContents(web_contents);
- if (tracing::NavigationTracingObserver::IsEnabled())
- tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
-
if (MediaEngagementService::IsEnabled())
MediaEngagementService::CreateWebContentsObserver(web_contents);
--- a/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
+++ b/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
@@ -6,7 +6,6 @@
#include "base/metrics/histogram_functions.h"
#include "content/browser/renderer_host/pepper/pepper_message_filter.h"
-#include "content/browser/tracing/trace_message_filter.h"
#include "content/common/pepper_renderer_instance_data.h"
#include "content/public/common/process_type.h"
#include "ipc/ipc_message_macros.h"
@@ -39,7 +38,6 @@ BrowserPpapiHost* BrowserPpapiHost::Crea
new PepperMessageFilter());
channel->AddFilter(pepper_message_filter->GetFilter());
channel->AddFilter(browser_ppapi_host->message_filter().get());
- channel->AddFilter((new TraceMessageFilter(render_process_id))->GetFilter());
return browser_ppapi_host;
}

View File

@ -67,3 +67,6 @@ patches/safe_browsing-disable-incident-reporting.patch
patches/safe_browsing-disable-reporting-of-safebrowsing-over.patch
patches/unrar.patch
patches/welcome-page.patch
patches/disable_installer.patch
patches/disable_swiftshader.patch
patches/disable_tracing.patch