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 43772b47607e2dddd54bd4cab003f3f8f5716e3d..8915c03e8f1da81cbd04d1a63fae39e7a575146c 100644 |
--- a/content/browser/devtools/devtools_power_handler.cc |
+++ b/content/browser/devtools/devtools_power_handler.cc |
@@ -80,4 +80,8 @@ DevToolsPowerHandler::OnCanProfilePower( |
return command->SuccessResponse(result); |
} |
+void DevToolsPowerHandler::OnClientDetached() { |
+ PowerProfilerService::GetInstance()->RemoveObserver(this); |
+} |
+ |
} // namespace content |