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

Unified Diff: sky/tools/skydb

Issue 672363002: Make skydb load examples/home.sky by default. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« sky/tools/debugger/prompt/prompt.cc ('K') | « sky/tools/debugger/prompt/prompt.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index 406e4826091eade3ed928d9f918875cd5c07735b..caa8f8093fa5af948c1fa9ef53a2a8ee5b0a4107 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -13,11 +13,18 @@ CONFIG_DIRECTORY = 'Debug'
MOJO_SHELL_PATH = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir,
os.pardir, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'mojo_shell'))
+SUPPORTED_MIME_TYPES = [
Hixie 2014/10/23 21:56:20 this is temporary, right? Long term we don't want
+ 'text/html',
+ 'text/plain',
+]
+
def main(args):
+ content_handlers = ['%s,%s' % (mime_type, 'mojo://sky_viewer/')
+ for mime_type in SUPPORTED_MIME_TYPES]
shell_command = [
MOJO_SHELL_PATH,
'--v=1',
- '--content-handlers=text/html,mojo://sky_viewer/',
+ '--content-handlers=%s' % ','.join(content_handlers),
'--url-mappings=mojo:window_manager=mojo:sky_debugger',
'mojo:window_manager',
]
« sky/tools/debugger/prompt/prompt.cc ('K') | « sky/tools/debugger/prompt/prompt.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698