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

Side by Side Diff: chromeos-chrome-login

Issue 479011: Scripts to use chrome as a login manager (Closed)
Patch Set: revert to /dev/urandom Created 11 years 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 | « no previous file | debian/control » ('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 #!/bin/sh
2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Perform some initial setup for the browser if necessary and then run
8 # it in a loop.
9
10 CHROME_DIR="/opt/google/chrome"
11 CHROME="$CHROME_DIR/chrome"
12 BOTTLE="$CHROME_DIR/bottle.sh"
13 COOKIE_PIPE="/tmp/cookie_pipe"
14 DISABLE_CHROME_RESTART="/tmp/disable_chrome_restart"
15 SEND_METRICS="/etc/send_metrics"
16
17 # xdg-open is used to open downloaded files.
18 # It runs sensible-browser, which uses $BROWSER.
19 export BROWSER=/opt/google/chrome/chrome
20
21 # NOTE: Do not edit the following line.
22 # Unofficial and official builds use different default profile dirs.
23 # For official builds, debian/rules sets the next line to
24 # "google-chrome" when the package is being built.
25 PROFILE_DIR=chromium
26
27 # TODO(cmasone): Chrome tracks "Consent To Send Stats" on a per user-data-dir
28 # basis, which is not going to work for our needs. That needs to be addressed.
29
30 while true; do
31 "$CHROME" --enable-gview \
32 --enable-sync \
33 --main-menu-url="http://welcome-cros.appspot.com/menu" \
34 --no-first-run \
35 --login-manager \
36 --user-data-dir=/home/$USER \
37 --profile=user \
38 "--cookie-pipe=$COOKIE_PIPE"
39
40 # Exit if auto-restart has been disabled.
41 if test -f "$DISABLE_CHROME_RESTART"; then
42 break
43 fi
44 done
OLDNEW
« no previous file with comments | « no previous file | debian/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698