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

Unified Diff: services/js/js_app_runner_delegate.cc

Issue 788863003: Restore the JS Spinning Cube demo (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Removed spurious includes Created 6 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: services/js/js_app_runner_delegate.cc
diff --git a/services/js/js_app_runner_delegate.cc b/services/js/js_app_runner_delegate.cc
index 30db8540cca8b7d0f90ff29b52b6a97510b4886f..c8c2f6d7b46eaf249e93d20469814b4f9c2eda42 100644
--- a/services/js/js_app_runner_delegate.cc
+++ b/services/js/js_app_runner_delegate.cc
@@ -6,6 +6,7 @@
#include "base/path_service.h"
#include "gin/modules/console.h"
+#include "gin/modules/timer.h"
#include "mojo/edk/js/core.h"
#include "mojo/edk/js/handle.h"
#include "mojo/edk/js/support.h"
@@ -36,6 +37,7 @@ void AddBuiltin(gin::ModuleRunnerDelegate* delegate) {
JSAppRunnerDelegate::JSAppRunnerDelegate()
: ModuleRunnerDelegate(GetModuleSearchPaths()) {
AddBuiltin<gin::Console>(this);
+ AddBuiltinModule(gin::TimerModule::kName, gin::TimerModule::GetModule);
AddBuiltin<mojo::js::Core>(this);
AddBuiltin<mojo::js::Support>(this);
AddBuiltin<mojo::js::Threading>(this);
« examples/js/cube.js ('K') | « examples/js/cube.js ('k') | services/js/modules/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698