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

Unified Diff: ui/views/widget/widget_interactive_uitest.cc

Issue 2593613003: Fix use-after-free in WidgetCaptureTest.SetCaptureToNonToplevel. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget_interactive_uitest.cc
diff --git a/ui/views/widget/widget_interactive_uitest.cc b/ui/views/widget/widget_interactive_uitest.cc
index 8fa88e7ca73281129e5062de4704bdb08619c19c..3986ee4ea721e21b46f35ec9dfeb43b990a96d1f 100644
--- a/ui/views/widget/widget_interactive_uitest.cc
+++ b/ui/views/widget/widget_interactive_uitest.cc
@@ -1557,6 +1557,8 @@ TEST_F(WidgetCaptureTest, SetCaptureToNonToplevel) {
EXPECT_TRUE(observer.activation_observed());
EXPECT_TRUE(child->HasCapture());
+
+ child->RemoveObserver(&observer);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698