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

Unified Diff: base/trace_event/blame_context.h

Issue 2053233002: Make sure FrameScheduler is cleared when LocalFrame::detach() finishes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: base/trace_event/blame_context.h
diff --git a/base/trace_event/blame_context.h b/base/trace_event/blame_context.h
index 0bcb7e4c51d94e037a77c619551e531c9cbc3226..19c1af2c4147f00271cb41db572434bd27c98e99 100644
--- a/base/trace_event/blame_context.h
+++ b/base/trace_event/blame_context.h
@@ -104,6 +104,9 @@ class BASE_EXPORT BlameContext
void OnTraceLogEnabled() override;
void OnTraceLogDisabled() override;
+ // Returns a WeakPtr of itself.
+ WeakPtr<BlameContext> weak_ptr() { return weak_factory_.GetWeakPtr(); }
+
protected:
// Serialize the properties of this blame context into |state|. Subclasses can
// override this method to record additional properties (e.g, the URL for an

Powered by Google App Engine
This is Rietveld 408576698