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

Side by Side Diff: remoting/tools/me2me_virtual_host.py

Issue 10829306: Make curtain-mode controllable by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Virtual Me2Me implementation. This script runs and manages the processes 6 # Virtual Me2Me implementation. This script runs and manages the processes
7 # required for a Virtual Me2Me desktop, which are: X server, X desktop 7 # required for a Virtual Me2Me desktop, which are: X server, X desktop
8 # session, and Host process. 8 # session, and Host process.
9 # This script is intended to run continuously as a background daemon 9 # This script is intended to run continuously as a background daemon
10 # process, running under an ordinary (non-root) user account. 10 # process, running under an ordinary (non-root) user account.
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 return 0 909 return 0
910 elif os.WEXITSTATUS(status) == 4: 910 elif os.WEXITSTATUS(status) == 4:
911 logging.info("OAuth credentials are invalid - exiting.") 911 logging.info("OAuth credentials are invalid - exiting.")
912 host_config.clear_auth() 912 host_config.clear_auth()
913 host_config.save() 913 host_config.save()
914 return 0 914 return 0
915 elif os.WEXITSTATUS(status) == 5: 915 elif os.WEXITSTATUS(status) == 5:
916 logging.info("Host domain is blocked by policy - exiting.") 916 logging.info("Host domain is blocked by policy - exiting.")
917 os.remove(host.config_file) 917 os.remove(host.config_file)
918 return 0 918 return 0
919 # Nothing to do for Mac-only status 6 (login screen unsupported)
919 920
920 if __name__ == "__main__": 921 if __name__ == "__main__":
921 logging.basicConfig(level=logging.DEBUG) 922 logging.basicConfig(level=logging.DEBUG)
922 sys.exit(main()) 923 sys.exit(main())
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698