Make breakpad, gcl and presubmit_support dependencies optional

TEST=unit tests

Review URL: http://codereview.chromium.org/503068

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35072 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_utils.py b/gclient_utils.py
index 6ea091c..4944cf9 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -35,15 +35,19 @@
     self.stdout = stdout
 
 
-def CheckCall(command, cwd=None):
+def CheckCall(command, cwd=None, print_error=True):
   """Like subprocess.check_call() but returns stdout.
 
   Works on python 2.4
   """
   try:
+    stderr = None
+    if not print_error:
+      stderr = subprocess.PIPE
     process = subprocess.Popen(command, cwd=cwd,
                                shell=sys.platform.startswith('win'),
-                               stdout=subprocess.PIPE)
+                               stdout=subprocess.PIPE,
+                               stderr=stderr)
     output = process.communicate()[0]
   except OSError, e:
     raise CheckCallError(command, cwd, errno, None)