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

Unified Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 2062743002: Randomly enable leak detector based on probability parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderThreadObserver interface to shutdown remote client on same thread Created 4 years, 4 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: chrome/renderer/chrome_content_renderer_client.h
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
index 56a5b2417ed7f57e1cbfc4cb243e7e24de42a52e..4adf285da8b24b2eb725c2ea69f3c1b239300ba3 100644
--- a/chrome/renderer/chrome_content_renderer_client.h
+++ b/chrome/renderer/chrome_content_renderer_client.h
@@ -20,6 +20,10 @@
#include "ipc/ipc_channel_proxy.h"
#include "v8/include/v8.h"
+#if defined (OS_CHROMEOS)
+#include "chrome/renderer/leak_detector/leak_detector_remote_client.h"
+#endif
+
class ChromeRenderThreadObserver;
#if defined(ENABLE_PRINT_PREVIEW)
class ChromePDFPrintClient;
@@ -228,6 +232,10 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
std::set<std::string> allowed_camera_device_origins_;
std::set<std::string> allowed_compositor_origins_;
#endif
+
+#if defined(OS_CHROMEOS)
+ std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_;
+#endif
};
#endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698