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

Unified Diff: ui/display/manager/chromeos/test/test_native_display_delegate.h

Issue 2571543002: Fix use after free for cached_displays_. (Closed)
Patch Set: Add invalidate to tests. 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
Index: ui/display/manager/chromeos/test/test_native_display_delegate.h
diff --git a/ui/display/manager/chromeos/test/test_native_display_delegate.h b/ui/display/manager/chromeos/test/test_native_display_delegate.h
index 1b875f6ba40093fec7caee55802c5ed28fca79c4..c994d73ae39b739fa213c14f140f2e92486583d1 100644
--- a/ui/display/manager/chromeos/test/test_native_display_delegate.h
+++ b/ui/display/manager/chromeos/test/test_native_display_delegate.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/observer_list.h"
#include "ui/display/manager/chromeos/test/action_logger.h"
#include "ui/display/manager/chromeos/test/action_logger_util.h"
#include "ui/display/types/native_display_delegate.h"
@@ -18,6 +19,7 @@ namespace ui {
class ActionLogger;
class DisplaySnapshot;
+class NativeDisplayObserver;
namespace test {
@@ -111,6 +113,8 @@ class TestNativeDisplayDelegate : public NativeDisplayDelegate {
ActionLogger* log_; // Not owned.
+ base::ObserverList<NativeDisplayObserver> observers_;
+
DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate);
};
« no previous file with comments | « ui/display/manager/chromeos/display_configurator.cc ('k') | ui/display/manager/chromeos/test/test_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698