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

Side by Side Diff: chrome_frame/tools/helper_shutdown.py

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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 | « chrome_frame/test_utils.cc ('k') | chrome_frame/tools/smoke_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 """This is a simple helper script to shut down the Chrome Frame helper process.
6
7 Requires Python Win32 extensions.
8 """
9
10 import pywintypes
11 import sys
12 import win32gui
13 import win32con
14
15
16 def main():
17 exit_code = 0
18 window = win32gui.FindWindow('ChromeFrameHelperWindowClass',
19 'ChromeFrameHelperWindowName')
20 if not window:
21 print 'Chrome Frame helper process not running.'
22 else:
23 try:
24 win32gui.PostMessage(window, win32con.WM_CLOSE, 0, 0)
25 print 'Chrome Frame helper process shut down.'
26 except pywintypes.error as ex:
27 print 'Failed to shutdown Chrome Frame helper process: '
28 print ex
29 exit_code = 1
30 return exit_code
31
32
33 if __name__ == '__main__':
34 sys.exit(main())
OLDNEW
« no previous file with comments | « chrome_frame/test_utils.cc ('k') | chrome_frame/tools/smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698