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

Unified Diff: sky/tools/skydb

Issue 743603004: Make skydb chromoting aware (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 bf1e2a1bea48da3ec20cbd78ac6c6d7b42962a57..e834f68289416f17e31331d7ce24278f19cb35c1 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -58,12 +58,16 @@ class SkyDebugger(object):
self._sky_server = subprocess.Popen(server_command)
return 'http://localhost:%s/%s' % (HTTP_PORT, relative_path)
+ def _in_chromoting(self):
+ return os.environ.get('CHROME_REMOTE_DESKTOP_SESSION', False)
+
def main(self):
logging.basicConfig(level=logging.INFO)
parser = argparse.ArgumentParser(description='Sky launcher/debugger')
parser.add_argument('--gdb', action='store_true')
- parser.add_argument('--use-osmesa', action='store_true')
+ parser.add_argument('--use-osmesa', action='store_true',
+ default=self._in_chromoting())
parser.add_argument('url', nargs='?', type=str)
args = parser.parse_args()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698