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(); |
} |