Index: third_party/WebKit/Source/modules/ModulesInitializer.cpp |
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp |
index 6eddf4552ef24ef5d4e10b435cd65e07bca9fdf7..0b7621df076e0723d20d010ccfe406bb5cfb26fc 100644 |
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp |
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp |
@@ -21,6 +21,7 @@ |
#include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
#include "modules/imagebitmap/ImageBitmapRenderingContext.h" |
#include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" |
+#include "modules/time_zone_monitor/TimeZoneMonitorClient.h" |
#include "modules/webdatabase/DatabaseManager.h" |
#include "modules/webgl/WebGL2RenderingContext.h" |
#include "modules/webgl/WebGLRenderingContext.h" |
@@ -76,4 +77,13 @@ void ModulesInitializer::shutdown() { |
CompositorWorkerThread::clearSharedBackingThread(); |
} |
+void ModulesInitializer::initializeMojo() { |
+ if (m_isMojoInitialized) |
blundell
2016/10/18 12:32:11
Can this just be an assert(!m_isMojoInitialized) i
|
+ return; |
+ |
+ TimeZoneMonitorClient::Init(); |
+ |
+ m_isMojoInitialized = true; |
+} |
+ |
} // namespace blink |