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

Unified Diff: sky/engine/core/Init.cpp

Issue 879743004: Remove the EventFactory machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/Init.h ('k') | sky/engine/core/core.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/Init.cpp
diff --git a/sky/engine/core/Init.cpp b/sky/engine/core/Init.cpp
index 6806336f53e070bf30ecd94103f75a194fec9a7e..ad30fbff66aba8d468bea09c02ae0a98dc693bf2 100644
--- a/sky/engine/core/Init.cpp
+++ b/sky/engine/core/Init.cpp
@@ -40,7 +40,6 @@
#include "gen/sky/core/MediaTypeNames.h"
#include "gen/sky/platform/FontFamilyNames.h"
#include "sky/engine/core/dom/Document.h"
-#include "sky/engine/core/events/EventFactory.h"
#include "sky/engine/core/html/parser/HTMLParserThread.h"
#include "sky/engine/platform/EventTracer.h"
#include "sky/engine/platform/Partitions.h"
@@ -49,16 +48,6 @@
namespace blink {
-void CoreInitializer::registerEventFactory()
-{
- static bool isRegistered = false;
- if (isRegistered)
- return;
- isRegistered = true;
-
- Document::registerEventFactory(EventFactory::create());
-}
-
void CoreInitializer::init()
{
ASSERT(!m_isInited);
@@ -82,8 +71,6 @@ void CoreInitializer::init()
Partitions::init();
EventTracer::initialize();
- registerEventFactory();
-
// Ensure that the main thread's thread-local data is initialized before
// starting any worker threads.
PlatformThreadData::current();
« no previous file with comments | « sky/engine/core/Init.h ('k') | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698