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

Unified Diff: tools/win/supalink/check_installed.py

Issue 10832161: Remove supalink (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/win/supalink/README ('k') | tools/win/supalink/install_supalink.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/win/supalink/check_installed.py
diff --git a/tools/win/supalink/check_installed.py b/tools/win/supalink/check_installed.py
deleted file mode 100755
index 1d089f4704f53014e36b7a5c68680bf871bf3605..0000000000000000000000000000000000000000
--- a/tools/win/supalink/check_installed.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import sys
-import os
-
-def main():
- _winreg = None
- if sys.platform == 'win32':
- import _winreg
- elif sys.platform == 'cygwin':
- try:
- import cygwinreg as _winreg
- except ImportError:
- pass # If not available, be safe and write 0.
-
- if not _winreg:
- sys.stdout.write('0')
- return 0
-
- try:
- val = _winreg.QueryValue(_winreg.HKEY_CURRENT_USER,
- 'Software\\Chromium\\supalink_installed')
- if os.path.exists(val):
- # Apparently gyp thinks this means there was an error?
- #sys.stderr.write('Supalink enabled.\n')
- sys.stdout.write('1')
- return 0
- except WindowsError:
- pass
-
- sys.stdout.write('0')
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tools/win/supalink/README ('k') | tools/win/supalink/install_supalink.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698