Added hack to allow Chromium access.

PRESUBMIT=passed
R=raymes,bjanakiraman
DELTA=6  (5 added, 0 deleted, 1 changed)
RCL=46060-p2
RDATE=2010/12/21 14:22:38


P4 change: 42607506
diff --git a/v14/setup_chromeos.py b/v14/setup_chromeos.py
index 93f8aef..1ee5dfd 100755
--- a/v14/setup_chromeos.py
+++ b/v14/setup_chromeos.py
@@ -10,6 +10,7 @@
 
 __author__ = "raymes@google.com (Raymes Khoury)"
 
+import getpass
 import optparse
 import os
 import sys
@@ -140,10 +141,14 @@
   cmd_executer.RunCommands(commands)
 
   # Setup svn credentials for use inside the chroot
+  if getpass.getuser() == "mobiletc-prebuild":
+    chromium_username = "raymes"
+  else:
+    chromium_username = "$USER"
   cmd_executer.RunCommand("svn ls --config-option config:auth:password-stores= "
                           "--config-option "
                           "servers:global:store-plaintext-passwords=yes "
-                          "--username $USER@google.com "
+                          "--username " + chromium_username + "@google.com "
                           "svn://svn.chromium.org/leapfrog-internal "
                           "svn://svn.chromium.org/chrome "
                           "svn://svn.chromium.org/chrome-internal > /dev/null")