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

Side by Side Diff: session_manager_setup.sh

Issue 2243001: Revert "Revert "Add default proxy stub as well as login to session_manager_setup"" (Closed) Base URL: ssh://git@chromiumos-git//login_manager.git
Patch Set: Created 10 years, 7 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
« no previous file with comments | « default_proxy ('k') | 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 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 XAUTH=/usr/bin/xauth 7 XAUTH=/usr/bin/xauth
8 XAUTH_FILE="/var/run/chromelogin.auth" 8 XAUTH_FILE="/var/run/chromelogin.auth"
9 SERVER_READY= 9 SERVER_READY=
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 if [ -n "$ENABLE_CHROME_LOGGING" ] ; then 37 if [ -n "$ENABLE_CHROME_LOGGING" ] ; then
38 CHROME_LOG=${DATA_DIR}/chrome_log 38 CHROME_LOG=${DATA_DIR}/chrome_log
39 CHROME_OLD_LOGS=${DATA_DIR}/chrome_old_logs 39 CHROME_OLD_LOGS=${DATA_DIR}/chrome_old_logs
40 # Forces Chrome to put its log into the home directory. 40 # Forces Chrome to put its log into the home directory.
41 # Release versions do this already, but not Debug ones. 41 # Release versions do this already, but not Debug ones.
42 export CHROME_LOG_FILE=${CHROME_LOG} 42 export CHROME_LOG_FILE=${CHROME_LOG}
43 CHROME_LOG_FLAG="--enable-logging" 43 CHROME_LOG_FLAG="--enable-logging"
44 mkdir -p $CHROME_OLD_LOGS 44 mkdir -p $CHROME_OLD_LOGS
45 chown $USER $CHROME_OLD_LOGS 45 chown $USER $CHROME_OLD_LOGS
46 if [ -e ${CHROME_LOG} ] ; then 46 if [ -e ${CHROME_LOG} ] ; then
47 LS_ARGS="-lht --time-style=+chrome.%Y%m%d-%H%M%S" 47 LS_ARGS="-lht --time-style=+chrome.%Y%m%d-%H%M%S"
48 OLD_LOG=${CHROME_OLD_LOGS}/`ls $LS_ARGS $CHROME_LOG | awk '{ print $6 }'` 48 OLD_LOG=${CHROME_OLD_LOGS}/`ls $LS_ARGS $CHROME_LOG | awk '{ print $6 }'`
49 mv $CHROME_LOG $OLD_LOG 49 mv $CHROME_LOG $OLD_LOG
50 fi 50 fi
51 else 51 else
52 CHROME_LOG_FLAG="--disable-logging" 52 CHROME_LOG_FLAG="--disable-logging"
53 fi 53 fi
54 54
55 # Forces Chrome mini dumps that are sent to the crash server to also be written 55 # Forces Chrome mini dumps that are sent to the crash server to also be written
56 # locally. Chrome by default will create these mini dump files in 56 # locally. Chrome by default will create these mini dump files in
(...skipping 23 matching lines...) Expand all
80 umount -f ${LOGIN_PROFILE_DIR} 80 umount -f ${LOGIN_PROFILE_DIR}
81 fi 81 fi
82 rm -rf ${LOGIN_PROFILE_DIR} 82 rm -rf ${LOGIN_PROFILE_DIR}
83 mkdir -p ${LOGIN_PROFILE_DIR} 83 mkdir -p ${LOGIN_PROFILE_DIR}
84 mount -n -t tmpfs -onodev,noexec,nosuid loginprofile ${LOGIN_PROFILE_DIR} 84 mount -n -t tmpfs -onodev,noexec,nosuid loginprofile ${LOGIN_PROFILE_DIR}
85 chown ${USER}:${USER} ${LOGIN_PROFILE_DIR} 85 chown ${USER}:${USER} ${LOGIN_PROFILE_DIR}
86 86
87 # temporary hack to tell cryptohome that we're doing chrome-login 87 # temporary hack to tell cryptohome that we're doing chrome-login
88 touch /tmp/doing-chrome-login 88 touch /tmp/doing-chrome-login
89 89
90 # Read default_proxy file from etc. Ok if not set.
91 PROXY_ARGS=--proxy-pac-url="$(cat /etc/default_proxy)"
92
90 CHROME_DIR="/opt/google/chrome" 93 CHROME_DIR="/opt/google/chrome"
91 CHROME="$CHROME_DIR/chrome" 94 CHROME="$CHROME_DIR/chrome"
92 SEND_METRICS="/etc/send_metrics" 95 SEND_METRICS="/etc/send_metrics"
93 CONSENT_FILE="$DATA_DIR/Consent To Send Stats" 96 CONSENT_FILE="$DATA_DIR/Consent To Send Stats"
94 97
95 # xdg-open is used to open downloaded files. 98 # xdg-open is used to open downloaded files.
96 # It runs sensible-browser, which uses $BROWSER. 99 # It runs sensible-browser, which uses $BROWSER.
97 export BROWSER=${CHROME} 100 export BROWSER=${CHROME}
98 101
99 USER_ID=$(/usr/bin/id -u ${USER}) 102 USER_ID=$(/usr/bin/id -u ${USER})
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 --enable-sync \ 148 --enable-sync \
146 --enable-chat-manager \ 149 --enable-chat-manager \
147 --log-level=0 \ 150 --log-level=0 \
148 "$CHROME_LOG_FLAG" \ 151 "$CHROME_LOG_FLAG" \
149 --main-menu-url="http://welcome-cros.appspot.com/menu" \ 152 --main-menu-url="http://welcome-cros.appspot.com/menu" \
150 --no-first-run \ 153 --no-first-run \
151 --user-data-dir=/home/$USER \ 154 --user-data-dir=/home/$USER \
152 --login-profile=user \ 155 --login-profile=user \
153 --in-chrome-auth \ 156 --in-chrome-auth \
154 --enable-login-images \ 157 --enable-login-images \
155 "${SKIP_OOBE}" 158 "${SKIP_OOBE}" \
159 "${PROXY_ARGS}"
OLDNEW
« no previous file with comments | « default_proxy ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698