Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: content/browser/tracing/background_memory_tracing_observer.cc

Issue 2785663002: Revert of Add EnabledStateObserver to BackgroundTracingManager (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/tracing/background_memory_tracing_observer.cc
diff --git a/content/browser/tracing/background_memory_tracing_observer.cc b/content/browser/tracing/background_memory_tracing_observer.cc
deleted file mode 100644
index c4e4a13eca6b59b09dcbf9837523a6ca6f20abcd..0000000000000000000000000000000000000000
--- a/content/browser/tracing/background_memory_tracing_observer.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/tracing/background_memory_tracing_observer.h"
-
-#include "base/trace_event/memory_dump_manager.h"
-
-namespace content {
-
-// static
-BackgroundMemoryTracingObserver*
-BackgroundMemoryTracingObserver::GetInstance() {
- static auto* instance = new BackgroundMemoryTracingObserver;
- return instance;
-}
-
-BackgroundMemoryTracingObserver::BackgroundMemoryTracingObserver() {}
-BackgroundMemoryTracingObserver::~BackgroundMemoryTracingObserver() {}
-
-void BackgroundMemoryTracingObserver::OnScenarioActivated(
- const BackgroundTracingConfigImpl& config) {}
-
-void BackgroundMemoryTracingObserver::OnTracingEnabled(
- BackgroundTracingConfigImpl::CategoryPreset preset) {
- if (preset ==
- BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_MEMORY_LIGHT) {
- auto* dump_manager = base::trace_event::MemoryDumpManager::GetInstance();
- dump_manager->RequestGlobalDump(
- base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED,
- base::trace_event::MemoryDumpLevelOfDetail::BACKGROUND);
- }
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698