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

Unified Diff: Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp

Issue 620683006: Move PlatformEventDispatcher implementations to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fix-platform
Patch Set: Set baseurl Created 6 years, 2 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
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationDispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp b/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
index a76da1e635102880327a90bb50542277d396fcdd..e5d78e71fa4e727f59c4aaf48116544d02be8c46 100644
--- a/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
@@ -11,16 +11,17 @@ namespace blink {
ScreenOrientationDispatcher& ScreenOrientationDispatcher::instance()
{
- DEFINE_STATIC_LOCAL(ScreenOrientationDispatcher, screenOrientationDispatcher, ());
- return screenOrientationDispatcher;
+ DEFINE_STATIC_LOCAL(Persistent<ScreenOrientationDispatcher>, screenOrientationDispatcher, (new ScreenOrientationDispatcher()));
+ return *screenOrientationDispatcher;
}
ScreenOrientationDispatcher::ScreenOrientationDispatcher()
{
}
-ScreenOrientationDispatcher::~ScreenOrientationDispatcher()
+void ScreenOrientationDispatcher::trace(Visitor* visitor)
{
+ PlatformEventDispatcher::trace(visitor);
}
void ScreenOrientationDispatcher::startListening()
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationDispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698