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

Side by Side Diff: chrome/test/mini_installer/quit_chrome.py

Issue 187813005: Fix typo in quit_chrome.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | 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 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Quits Chrome. 5 """Quits Chrome.
6 6
7 This script sends a WM_CLOSE message to each window of Chrome and waits until 7 This script sends a WM_CLOSE message to each window of Chrome and waits until
8 the process terminates. 8 the process terminates.
9 """ 9 """
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 usage = 'usage: %prog chrome_path' 64 usage = 'usage: %prog chrome_path'
65 parser = optparse.OptionParser(usage, description='Quit Chrome.') 65 parser = optparse.OptionParser(usage, description='Quit Chrome.')
66 _, args = parser.parse_args() 66 _, args = parser.parse_args()
67 if len(args) != 1: 67 if len(args) != 1:
68 parser.error('Incorrect number of arguments.') 68 parser.error('Incorrect number of arguments.')
69 chrome_path = args[0] 69 chrome_path = args[0]
70 70
71 if not CloseWindows(chrome_path): 71 if not CloseWindows(chrome_path):
72 # TODO(robertshield): Investigate why Chrome occasionally doesn't shut down. 72 # TODO(robertshield): Investigate why Chrome occasionally doesn't shut down.
73 print 'Warning: Chrome not responding to window closure. Killing process...' 73 print 'Warning: Chrome not responding to window closure. Killing process...'
74 KillNamedProcess(chrome_path): 74 KillNamedProcess(chrome_path)
75 return 0 75 return 0
76 76
77 77
78 if __name__ == '__main__': 78 if __name__ == '__main__':
79 sys.exit(main()) 79 sys.exit(main())
OLDNEW
« 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