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

Unified Diff: content/browser/devtools/devtools_power_handler.cc

Issue 332623003: [DevTools] [PowerProfiler] Fix for browser crash with active timeline recording for capturing power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | content/browser/power_profiler/power_profiler_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_power_handler.cc
diff --git a/content/browser/devtools/devtools_power_handler.cc b/content/browser/devtools/devtools_power_handler.cc
index 27fdf294c6fe88cb35343980cedd6e6f56beb3f3..43772b47607e2dddd54bd4cab003f3f8f5716e3d 100644
--- a/content/browser/devtools/devtools_power_handler.cc
+++ b/content/browser/devtools/devtools_power_handler.cc
@@ -24,6 +24,7 @@ DevToolsPowerHandler::DevToolsPowerHandler() {
}
DevToolsPowerHandler::~DevToolsPowerHandler() {
+ PowerProfilerService::GetInstance()->RemoveObserver(this);
}
void DevToolsPowerHandler::OnPowerEvent(const PowerEventVector& events) {
« no previous file with comments | « no previous file | content/browser/power_profiler/power_profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698