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

Unified Diff: content/browser/power_profiler/power_profiler_service.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 | « content/browser/devtools/devtools_power_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_profiler/power_profiler_service.cc
diff --git a/content/browser/power_profiler/power_profiler_service.cc b/content/browser/power_profiler/power_profiler_service.cc
index 951034c3918125a81e45b7f18ab92bb12ea33596..026b42ab893fbfb2b7fbabdf49ff11ae5c4b18b2 100644
--- a/content/browser/power_profiler/power_profiler_service.cc
+++ b/content/browser/power_profiler/power_profiler_service.cc
@@ -62,7 +62,7 @@ void PowerProfilerService::AddObserver(PowerProfilerObserver* observer) {
void PowerProfilerService::RemoveObserver(PowerProfilerObserver* observer) {
observers_.RemoveObserver(observer);
- if (!observers_.might_have_observers())
+ if (status_ == PROFILING && !observers_.might_have_observers())
Stop();
}
« no previous file with comments | « content/browser/devtools/devtools_power_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698