chromiumos/platform/login_manager.git
2 days agologin: Make Chrome log external-display-related info. 71/56271/2 master
Daniel Erat [Wed, 22 May 2013 17:48:27 +0000 (10:48 -0700)]
login: Make Chrome log external-display-related info.

This enables VLOG(1) for *output_configurator* to help debug
reports of issues related to external displays.

BUG=none
TEST=manual

Change-Id: Ifd07a181bc3a47ea9c0fd7dda622451b6927b86f
Reviewed-on: https://gerrit.chromium.org/gerrit/56271
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
3 days agoMove ui-related upstart jobs to login_manager repo 18/55818/3
Chris Masone [Mon, 20 May 2013 19:36:07 +0000 (12:36 -0700)]
Move ui-related upstart jobs to login_manager repo

These should live next to the code they manage.  This facilitates
extracting a whole system daemon from a build using USE flags.

BUG=chromium:242234
TEST=building this package should still work, but not install these files.

Change-Id: I34c627aed6d9b3d2ec28185f73a65ce88b0991c2
Reviewed-on: https://gerrit.chromium.org/gerrit/55818
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 days agoUse correct name for RetrieveActiveSessions in dbus config 65/55765/2
Chris Masone [Mon, 20 May 2013 15:37:24 +0000 (08:37 -0700)]
Use correct name for RetrieveActiveSessions in dbus config

The DBus policy was broken, because I used the wrong name
for the new method I added.  This led to Chrome being unable
to call RetrieveActiveSessions.

BUG=chromium:239830
TEST=start a session, run dbus-send from the command line as the chronos user.

Change-Id: Iab84b17bf92b4046acc74bc4889e9416f190cf87
Reviewed-on: https://gerrit.chromium.org/gerrit/55765
Reviewed-by: Nikita Kostylev <nkostylev@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

9 days agoAdd --login-profile flag when restarting browser after crash 11/50511/10
Chris Masone [Wed, 8 May 2013 23:09:31 +0000 (16:09 -0700)]
Add --login-profile flag when restarting browser after crash

This is actually important when the (newly added) --multi-profiles
flag is passed to the session manager.  When that flag is not specified,
the session_manager needs to maintain the old behavior of passing
--login-profile=user.

If --multi-profiles is not specified, when restarting the browser
after a crash, the session manager will append two flags to the
browser command line:
   --login-user=<user@email> --login-profile=user

If --multi-profiles _is_ specified, the session manager will do the following:
1) Add --multi-profiles to the browser command line
2) When restarting the browser after a crash, the session manager will append
   two flags to the browser command line:
   --login-user=<user@email> --login-profile=<sanitized user name>

BUG=chromium:235181
TEST=unit
TEST=suite:smoke

Change-Id: Ia00f42e1d1f1203b6147a5dd31ff6111de57944a
Reviewed-on: https://gerrit.chromium.org/gerrit/50511
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
9 days agoRemoved the old user policy DBus calls. 50/50450/3
Joao da Silva [Wed, 8 May 2013 13:35:25 +0000 (15:35 +0200)]
Removed the old user policy DBus calls.

These calls have been obsoleted by new variants that include the
username as a parameter.

BUG=chromium:187482
TEST=unit tests are green; manually verified on a VM image that user
policy still works.

Change-Id: Ic09bcebb96214772f16997b39d7688aa8ff63d1d
Reviewed-on: https://gerrit.chromium.org/gerrit/50450
Commit-Queue: Joao da Silva <joaodasilva@chromium.org>
Reviewed-by: Joao da Silva <joaodasilva@chromium.org>
Tested-by: Joao da Silva <joaodasilva@chromium.org>
11 days agoAdd RetrieveActiveSessions DBus method 94/50894/3 factory-4128.B factory-spring-4131.B
Chris Masone [Fri, 10 May 2013 18:07:31 +0000 (11:07 -0700)]
Add RetrieveActiveSessions DBus method

RetriveActiveSessions() returns a dictionary of currently
attached user sessions, mapping username to sanitized username
(a.k.a. user hash).

BUG=chromium:239830
TEST=unit

Change-Id: I315ee1cecea7c8af6df9968b569a084381ea9167
Reviewed-on: https://gerrit.chromium.org/gerrit/50894
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
2 weeks agoEnable session_manager to address per-user NSSDBs 28/48428/16
Chris Masone [Wed, 17 Apr 2013 23:02:20 +0000 (16:02 -0700)]
Enable session_manager to address per-user NSSDBs

Per-user DB handles are stored in each user's UserSession object
upon StartSession(), and used to scope owner key generation and lookup to
the appropriate user.

CQ-DEPEND=I912d3ded053a7f0f41c604f5ffef15477d634017
CQ-DEPEND=CL:50071

BUG=chromium:235179
TEST=unit tests
TEST=new autotests login_MultipleSessions and login_SameSessionTwice
TEST=login_OwnershipTaken login_RemoteOwnership login_OwnershipRetaken  login_OwnershipNotRetaken login_OwnershipApi login_UserPolicyKeys
TEST=suite:smoke
STATUS=Fixed

Change-Id: I5ee9fb18e1f8c1a933b899acc62618323f2df9bf
Reviewed-on: https://gerrit.chromium.org/gerrit/48428
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

2 weeks agoEnable Chrome side audio routing. 21/49921/2
Dylan Reid [Wed, 1 May 2013 22:29:27 +0000 (15:29 -0700)]
Enable Chrome side audio routing.

Enable the flag that tells chrome it is responsible for decisions
about where to route audio.

CQ-DEPEND=CL:49812
BUG=chromium:175798
TEST=plug/unplug audio devices and check that Chrome is routing audio
correctly

Change-Id: Ifa8f15c9cf5e4865f39c3c07cf076641943a7a0e
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49921
Reviewed-by: Rahul Chaturvedi <rkc@chromium.org>
2 weeks agosession_manager: Handle new-style device-local account IDs. 69/50169/4
Mattias Nissler [Mon, 6 May 2013 14:15:07 +0000 (16:15 +0200)]
session_manager: Handle new-style device-local account IDs.

Update session_manager after deprecation and rename of the
DeviceLocalAccountInfoProto.id field and introduction of the account_id
and type fields. Note that this will only compile after protofiles has
been rolled to protofiles-0.0.1-r14.ebuild.

BUG=chromium:216359
TEST=unit tests
CQ-DEPEND=CL:50170

Change-Id: Ia1aa3facd699443cebd88a756d44f9b0dc0fb986
Reviewed-on: https://gerrit.chromium.org/gerrit/50169
Tested-by: Mattias Nissler <mnissler@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Mattias Nissler <mnissler@chromium.org>

2 weeks agoEnable login_manager::NssUtil to support per-user NSS DBs. 73/50073/8
Chris Masone [Thu, 2 May 2013 01:00:22 +0000 (18:00 -0700)]
Enable login_manager::NssUtil to support per-user NSS DBs.

Add support for explicit NSS DB paths to login_manager::NssUtil in
order to support per-user NSS DBs.

Since upstream is not looking to change RSAPrivateKey::CreateSensitive()
and RSAPrivateKey::FindPublicKeyInfo() to support per-DB operations,
move the additional logic to support these into login_manager::NssUtil
as well.

CQ-DEPEND=CL:50071

BUG=chromium:221770
TEST=unit
TEST=suite:smoke

Change-Id: I20836238e9e32dac8e8d930a66f5a78bda704963
Reviewed-on: https://gerrit.chromium.org/gerrit/50073
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

2 weeks agoAdded multi-profile user-policy DBus calls. 32/48932/3
Joao da Silva [Tue, 23 Apr 2013 14:01:34 +0000 (18:01 +0400)]
Added multi-profile user-policy DBus calls.

Introduced StorePolicyForUser and RetrievePolicyForUser calls,
which are the multi-profile version of StoreUserPolicy and
RetrieveUserPolicy. These allow storing and retrieving user policy for
more than one user.

The old StoreUserPolicy and RetrieveUserPolicy calls will be removed
once Chrome is updated to use the new ones.

BUG=chromium:187482
TEST=unit tests are green; manually verified on a VM image that user
policy still works.

Change-Id: Ib748e2d59150034f4caa882ca01caf86eddbc9d4
Reviewed-on: https://gerrit.chromium.org/gerrit/48932
Tested-by: Joao da Silva <joaodasilva@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Joao da Silva <joaodasilva@chromium.org>

2 weeks agoFixed NetworkPortalDetector logging. 67/50167/2
Yuri Gorshenin [Mon, 6 May 2013 09:41:09 +0000 (13:41 +0400)]
Fixed NetworkPortalDetector logging.

As NetworkPortalDetector was split to NetworkPortalDetectorStub and NetworkPortalDetectorImpl, module name in vmodules need to be fixed.

BUG=chromium:170104
TEST=none

Change-Id: I6ceda4b2e9b6ee7f75b85c2121e9a00ce12628d2
Reviewed-on: https://gerrit.chromium.org/gerrit/50167
Reviewed-by: Yuri Gorshenin <ygorshenin@chromium.org>
Tested-by: Yuri Gorshenin <ygorshenin@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Yuri Gorshenin <ygorshenin@chromium.org>

2 weeks ago[login_manager] Remove --enable-impl-side-painting flag. 47/50047/2
David Reveman [Fri, 3 May 2013 17:39:47 +0000 (13:39 -0400)]
[login_manager] Remove --enable-impl-side-painting flag.

BUG=chromium:178317
TEST=local build

Change-Id: Ied01efa68959701a943eec2be344713a53fab8c9
Reviewed-on: https://gerrit.chromium.org/gerrit/50047
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
2 weeks agoAdd notion of "user sessions" to session_manager 40/50040/3
Chris Masone [Thu, 2 May 2013 19:57:47 +0000 (12:57 -0700)]
Add notion of "user sessions" to session_manager

To support multiprofile, the session manager will need to be able to keep
track of multiple user sessions at the same time.  This CL introduces a
UserSession structure to store pertinent data, and stores a map of username
to UserSession that's updated upon each call to StartSession().

This CL does NOT make multiprofile work correctly for everything.  Device
Ownership issues are not sorted out, and many operations that currently
only make sense inside a user session barf if multiple sessions have been
started.

BUG=chromium:235179
TEST=unit
TEST=suite:smoke
TEST=login_*Ownership*

Change-Id: Ib295a562735076fde84b8ad0d05e81bf6035fa23
Reviewed-on: https://gerrit.chromium.org/gerrit/50040
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Joao da Silva <joaodasilva@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

2 weeks agoHonor new guest 'magic string' in session_manager 37/50037/2
Chris Masone [Fri, 3 May 2013 15:44:20 +0000 (08:44 -0700)]
Honor new guest 'magic string' in session_manager

We're standardizing around using '' as the name for the guest user, so
make StartSession() accept that as well.

BUG=chromium:237815
TEST=unit
TEST=login_CryptohomeIncognitoMounted

Change-Id: Ida8abe323a7be3ee5f69c56d2df949553aa6f84a
Reviewed-on: https://gerrit.chromium.org/gerrit/50037
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Reviewed-by: Nikita Kostylev <nkostylev@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

3 weeks agoRemove superfluous check for user nssdb existence 35/49735/3
Chris Masone [Wed, 1 May 2013 17:45:23 +0000 (10:45 -0700)]
Remove superfluous check for user nssdb existence

Some time ago, we ensured that all cryptohomes were pre-populated with
an NSSDB at creation time.  As such, this logic to check if one exists
before trying to use it is now redundant.

BUG=None
TEST=unit
TEST=suite:smoke

Change-Id: I892e09fb5f71c400964daab9a270b1bcad316d8c
Reviewed-on: https://gerrit.chromium.org/gerrit/49735
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 weeks agoUse one NssUtil instance, owned by SessionManagerService 15/49115/4 stabilize-4068.0.B
Chris Masone [Wed, 24 Apr 2013 23:24:23 +0000 (16:24 -0700)]
Use one NssUtil instance, owned by SessionManagerService

This removes the last remnants of the factory pattern used to allow
any class to instantiate an NssUtil at any time, which was kinda awkward
anyhow.

BUG=chromium:235197
TEST=unit
STATUS=Fixed

Change-Id: I68ca763966693d41d51161989c452d03dfe9cb97
Reviewed-on: https://gerrit.chromium.org/gerrit/49115
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
4 weeks agoUse a single KeyGenerator, owned by SessionManagerService 97/49097/3
Chris Masone [Wed, 24 Apr 2013 21:39:57 +0000 (14:39 -0700)]
Use a single KeyGenerator, owned by SessionManagerService

Code in SessionManagerService is written assuming that there's only
one KeyGenerator object in use by the process, while the reality is
that we have one used when mitigating the loss of an owner keypair and
another used when generating an owner keypair for the first time.

Fix this up so that there's only one.

BUG=chromium:235185
TEST=unit
TEST=login_OwnershipRetaken, login_OwnershipTaken
STATUS=Fixed

Change-Id: Ida69cc03ca2cf08856c69491dc9f527f69f5e4dd
Reviewed-on: https://gerrit.chromium.org/gerrit/49097
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
4 weeks agoRemove username payload from SessionStateChanged 72/48972/2
Chris Masone [Tue, 23 Apr 2013 21:56:03 +0000 (14:56 -0700)]
Remove username payload from SessionStateChanged

The SessionStateChanged signal and RetrieveSessionState method
shouldn't report what user's session has started.  This data
isn't used, and reporting it will only become more complicated
in a multiprofile world.

The signature of RetrieveSessionState is changed in this CL
because it only has one caller, and the CL to change the
callsite will go in at the same time.

CQ-DEPEND=CL:48958
CQ-DEPEND=CL:48960
BUG=chromium:234763
TEST=unit
TEST=with above CLs, watch powerd logs while starting/ending sessions, and restarting powerd.
TEST=with above CLs, run the following autotests:
   - platform_CrosDisksDBus
   - platform_CrosDisksArchive
   - platform_CrosDisksFilesystem

Change-Id: Ic7636e8b9f6e5da35d5e7aa23114533869f9a604
Reviewed-on: https://gerrit.chromium.org/gerrit/48972
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 weeks agoThe screen should be 'locked' when the lock process begins 64/48964/2
Chris Masone [Tue, 23 Apr 2013 21:35:14 +0000 (14:35 -0700)]
The screen should be 'locked' when the lock process begins

The session_manager handles browser crashes while the screen is locked
specially, in that it ends the user session instead of restarting the
browser.  This is to keep user data safe; the user has indicated that
she wants someone to have to reauthenticate to see her stuff, and if a
crash happens while the screen is locked and we just restart things,
we'd be violating that.

The old behavior was to trigger that behavior only if we'd succeeded
in putting the lock screen up.  Instead, we should trigger the behavior
as soon as we know the user asked for screen lock.

BUG=chromium:233827
TEST=unit

Change-Id: Icfadce9c51f83c29963cab93aa66781ba1aa57a5
Reviewed-on: https://gerrit.chromium.org/gerrit/48964
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
4 weeks ago[login_manager] Increase default tile size to 512x512 on hi-dpi devices. 99/48899/2
David Reveman [Tue, 23 Apr 2013 15:45:57 +0000 (11:45 -0400)]
[login_manager] Increase default tile size to 512x512 on hi-dpi devices.

BUG=chromium:178317
TEST=local build, tested on link

Change-Id: Iae99b69a82d2c77a5e321efd61e0a956c7d96c49
Reviewed-on: https://gerrit.chromium.org/gerrit/48899
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
5 weeks agoRemove 'OVERRIDE' from non virtual function. 77/48577/3 stabilize-4035.0.B
Yunlian Jiang [Thu, 18 Apr 2013 23:09:12 +0000 (16:09 -0700)]
Remove 'OVERRIDE' from non virtual function.

BUG=chromium:233393
TEST=CXXFLANGS="-clang" FEATURES="test" emerge-lumpy chromeos-login
     passes

Change-Id: I07fbe3d8b53da2367db08c51fa977a6902975d9f
Reviewed-on: https://gerrit.chromium.org/gerrit/48577
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
5 weeks agoRemove unused MockNssUtil subclasses 49/48449/2
Chris Masone [Thu, 18 Apr 2013 01:57:55 +0000 (18:57 -0700)]
Remove unused MockNssUtil subclasses

Nothing uses ShortKeyGenerator or ShortKeyUtil anymore, so
get rid of them.

BUG=None
TEST=unit

Change-Id: Ia9b8a1a3aa451312fe7f73e5254a9467a82dcbad
Reviewed-on: https://gerrit.chromium.org/gerrit/48449
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

5 weeks agoRemove Sign() from PolicyKey class 94/48394/4
Chris Masone [Wed, 17 Apr 2013 19:44:13 +0000 (12:44 -0700)]
Remove Sign() from PolicyKey class

PolicyKey really represents the public half of a key pair.  In retrospect,
it's weird to have it provide a Sign() method that silently goes and
finds its private half in some implicit NSSDB in order to generate
a signature.  This becomes even funkier when we move to a world where
the session_manager is tracking multiple user sessions, each with its
own NSSDB.  So, get rid of this abstraction and make code that signs
things call NssUtil methods directly.  This will ease the transition
to multiprofile.

BUG=chromium:221770
TEST=unit tests
TEST=login_*Ownership* autotests

Change-Id: I78a32cb288b9712519f0fa81d4d8760a4c576fc6
Reviewed-on: https://gerrit.chromium.org/gerrit/48394
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
5 weeks agoRemove redundant --ui-enable-threaded-compositing flag. 70/47770/3
Jonathan Backer [Wed, 10 Apr 2013 20:33:28 +0000 (16:33 -0400)]
Remove redundant --ui-enable-threaded-compositing flag.

As of crrev.com/193431 this flag is on by default in Chromium for
ChromeOS builds. This has no functional change.

BUG=chromium:173417
TEST=local build, run on stumpy

Change-Id: If2c287453f7c44701c046a2c91d559105812754a
Reviewed-on: https://gerrit.chromium.org/gerrit/47770
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: Jonathan Backer <backer@chromium.org>
Tested-by: Jonathan Backer <backer@chromium.org>
5 weeks agoRemove redundant --ui-enable-partial-swap flag. 40/48240/3
Jonathan Backer [Tue, 16 Apr 2013 19:08:28 +0000 (15:08 -0400)]
Remove redundant --ui-enable-partial-swap flag.

As of crrev.com/193763 this flag is on by default in Chromium for
ChromeOS builds. This CL should have no functional change.

BUG=chromium:173417
TEST=local build, run on stumpy

Change-Id: Iec1bf4b77c674d41def7f95ece54d83bb08eb1a3
Reviewed-on: https://gerrit.chromium.org/gerrit/48240
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: Jonathan Backer <backer@chromium.org>
Tested-by: Jonathan Backer <backer@chromium.org>
5 weeks agoAdjust touch-calibration for recent touchscreen config changes. 98/48498/2
Yuly Novikov [Thu, 18 Apr 2013 15:52:48 +0000 (11:52 -0400)]
Adjust touch-calibration for recent touchscreen config changes.

https://gerrit-int.chromium.org/#/c/35850/ increased size of bottom bezel,
so increase it here as well.

BUG=chromium:226290
TEST=Verify that touches are properly vertically aligned (see bug).
Also verify that bottom bezel gesture behaves as expected.

Change-Id: Iee9cf68b1333483c21a9ecab7768a754080eed1f
Reviewed-on: https://gerrit.chromium.org/gerrit/48498
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Tested-by: Yuly Novikov <ynovikov@chromium.org>
5 weeks agoIncrease the default auto-enrollment upload bits to 6. 92/48492/2
Joao da Silva [Thu, 18 Apr 2013 08:58:20 +0000 (12:58 +0400)]
Increase the default auto-enrollment upload bits to 6.

The auto-enrollment check uploads a limited number of bits from the
hash of the device serial number to determine the device's bucket on the
server-side. The buckets are now large enough that an additional bit is
required.

BUG=chromium:233111
TEST=Auto-enrollment still works.

Change-Id: I4acd37b06c21a02f0606f91aa0526e901c746d49
Reviewed-on: https://gerrit.chromium.org/gerrit/48492
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Joao da Silva <joaodasilva@chromium.org>
Tested-by: Joao da Silva <joaodasilva@chromium.org>
5 weeks agoFix '-Wbind-to-temporary-copy' warning with clang. 34/48134/5
Yunlian Jiang [Mon, 15 Apr 2013 20:50:36 +0000 (13:50 -0700)]
Fix '-Wbind-to-temporary-copy' warning with clang.

This fixes the error
user_policy_service.cc:72:25: error: C++98 requires an
accessible copy constructor for class 'login_manager::PolicyService::Error'
when binding a reference to a temporary; was private [-Werror,-Wbind-to-temporary-copy]
completion->Failure(Error(CHROMEOS_LOGIN_ERROR_DECODE_FAIL, msg));
                        ^
/login_manager/policy_service.h:60:30: note: declared
      private here
    DISALLOW_COPY_AND_ASSIGN(Error);
                             ^
/build/lumpy/usr/include/base-180609/base/basictypes.h:74:3: note: expanded from
macro 'DISALLOW_COPY_AND_ASSIGN' TypeName(const TypeName&);

BUG=chromium:231403
TEST=the clang syntax checking passed.
Change-Id: I7999173fdba2062c693346dee0b3663e7250afb0
Reviewed-on: https://gerrit.chromium.org/gerrit/48134
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
6 weeks agoMove the sentinel flags definitions to a common header shared by Chrome and ChromeOS 43/47643/2 stabilize-4008.0.B
Julian Pastarmov [Tue, 9 Apr 2013 15:02:17 +0000 (17:02 +0200)]
Move the sentinel flags definitions to a common header shared by Chrome and ChromeOS

BUG=chromium:221354
TEST=Still compiles and passes unit tests.
CQ-DEPEND=Id611c8d6eb9362fc85ee8c19c78998a118d9b0a3

Change-Id: Icea7a1076ac1716800ffab474c5065237619496e
Reviewed-on: https://gerrit.chromium.org/gerrit/47643
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Tested-by: Julian Pastarmov <pastarmovj@chromium.org>
6 weeks agoUpdate to new common.mk, fix Makefile errors 95/47595/2
Chris Masone [Mon, 8 Apr 2013 21:26:25 +0000 (14:26 -0700)]
Update to new common.mk, fix Makefile errors

The clean: rule for cros-xauth was broken, and the one for $(TEST_BIN) was
a bit funky too.  Also, update to the new common.mk.

BUG=None
TEST=cros_workon_make chromeos-login, then make clean in src/platform/login_manager.  cros-xauth should be deleted.

Change-Id: I21cc43b3b535fffe75e53079483c6445ae75633e
Reviewed-on: https://gerrit.chromium.org/gerrit/47595
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

7 weeks agoMake sure we support flags with and without dashes. 11/47311/3
Julian Pastarmov [Thu, 4 Apr 2013 11:28:19 +0000 (13:28 +0200)]
Make sure we support flags with and without dashes.

Further sanitize flags that are empty since this can trick chrome in thinking
that consecutive flags are plain arguments.

BUG=chromium-os:39251
TEST=DevicePolicyServiceTest.StartUpFlagsSanitizer

Change-Id: I0bfe004530b79dce8b6536fdf3d5e0ad388eacbd
Reviewed-on: https://gerrit.chromium.org/gerrit/47311
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Tested-by: Julian Pastarmov <pastarmovj@chromium.org>
7 weeks ago[login_manager] Reduce ResourcePool size when possible. 86/47286/2
David Reveman [Wed, 3 Apr 2013 22:38:01 +0000 (18:38 -0400)]
[login_manager] Reduce ResourcePool size when possible.

Reduce maximum amount of unused resource memory with impl-side
painting to 5% of total memory budget by adding:
--max-unused-resource-memory-usage-percentage=5

BUG=chromium:179460
TEST=local build, tested on daisy and link

Change-Id: I76d7ee44bab0e829e2ee5c8428e85e84a15a91c5
Reviewed-on: https://gerrit.chromium.org/gerrit/47286
Tested-by: David Reveman <reveman@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>

7 weeks ago[login] repair accidentally-uppercased policy dirs 61/47061/4
Elly Fong-Jones [Mon, 1 Apr 2013 22:48:57 +0000 (18:48 -0400)]
[login] repair accidentally-uppercased policy dirs

These were created uppercase because of crbug.com/225472; migrate them to
lowercase.

BUG=chromium:225472,chromium:225487
TEST=unit

Change-Id: Ic28d9c5cf95a93fb201a174d6ebe3b1bcc122daa
Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/47061
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
8 weeks ago[login_manager] Add --enable-impl-side-painting flag. 06/45506/3
David Reveman [Tue, 22 Jan 2013 22:35:02 +0000 (17:35 -0500)]
[login_manager] Add --enable-impl-side-painting flag.

BUG=chromium:178317
TEST=local build, tested on daisy and link

Change-Id: I246ffa60177011c41175bb97781ebd867bc17de4
Reviewed-on: https://gerrit.chromium.org/gerrit/45506
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>

8 weeks agologin_manager: Calculate gmock/gtest library dependencies programatically 26/46426/4
Gaurav Shah [Sun, 24 Mar 2013 22:47:14 +0000 (15:47 -0700)]
login_manager: Calculate gmock/gtest library dependencies programatically

This makes package upgrades for gmock/gtest easier (1.6 adds a pthreads
dependency).

BUG=chromium:211445
TEST=build tests for package using gtest 1.6

Change-Id: I14f87bb4b884b30bf51e33e16fa96752638a0055
Reviewed-on: https://gerrit.chromium.org/gerrit/46426
Commit-Queue: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
2 months agoGuard the policy added flags with sentinel flags. 62/46162/2
Julian Pastarmov [Thu, 21 Mar 2013 21:25:27 +0000 (22:25 +0100)]
Guard the policy added flags with sentinel flags.

That way it will be easier for the client to decide and do filtering
on those flags whenever required.

BUG=chromium:221354
TEST=Set the StartUpFlags policy and verify that the sentinel flags are present.

Change-Id: I3ad56f0c6b92eb9a2bc66783d8712da2a3c47d57
Reviewed-on: https://gerrit.chromium.org/gerrit/46162
Tested-by: Julian Pastarmov <pastarmovj@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>

2 months ago[login_manager] Enable --enable-impl-side-painting flag when using highdpi. 18/45618/2
David Reveman [Fri, 15 Mar 2013 20:56:02 +0000 (16:56 -0400)]
[login_manager] Enable --enable-impl-side-painting flag when using highdpi.

BUG=chromium:178317
TEST=local build, tested on daisy and link

Change-Id: Ied1954ea565ec392cb958224effd0091db262514
Reviewed-on: https://gerrit.chromium.org/gerrit/45618
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
2 months agoEnforce the StartUpFlags device policy through session manager. 34/45434/10
Julian Pastarmov [Fri, 15 Mar 2013 17:02:53 +0000 (18:02 +0100)]
Enforce the StartUpFlags device policy through session manager.

In order to make sure flags specified through policy are enforced
and applied before the browser had the chance to initialize we
should set them through session manager before it spawns the
browser process. This feature will not be exposed until we have
some way to ensure that only the set of flags inteded to be used
through this mechanism is enfoced either in the session manager or
on the browser side.

BUG=chromium-os:39251
TEST=Set the policy and check that the policy is respected.

Change-Id: I1bc5e0bfd93bcb61230a0c87f9d63edee00dfaea
Reviewed-on: https://gerrit.chromium.org/gerrit/45434
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Julian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>

2 months agosession_manager should refuse to lock outside user session 17/45517/2 factory-spring-3842.B stabilize-3881.0.B
Chris Masone [Thu, 14 Mar 2013 23:26:28 +0000 (16:26 -0700)]
session_manager should refuse to lock outside user session

If there's no currently active user session, locking the
screen isn't a sensical thing to do.  So...refuse to do it.

BUG=chromium:174488
TEST=unit
TEST=desktopui_ScreenLocker still passes

Change-Id: I574936a05b7737de2f8197133e448f77cc928841
Reviewed-on: https://gerrit.chromium.org/gerrit/45517
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

2 months agoLimit the number of UI frames in flight to at most 1. 40/45340/3
Jonathan Backer [Wed, 13 Mar 2013 21:01:07 +0000 (17:01 -0400)]
Limit the number of UI frames in flight to at most 1.

By limiting the number of frames in flight, we are less likely to have
a blocking call to SwapBuffers or MakeCurrent (gated on vblank). This
can lead to smoother scroll and video playback.

BUG=chromium:181317,chromium:189142
TEST=local build, run on daisy and link
Change-Id: I4d1579f70e6d05eb3aa92959862c94be3fa3776f
Reviewed-on: https://gerrit.chromium.org/gerrit/45340
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Tested-by: Jonathan Backer <backer@chromium.org>
2 months agoRe-enable EVDA 58/45258/2
John Sheu [Tue, 12 Mar 2013 22:13:14 +0000 (15:13 -0700)]
Re-enable EVDA

Remaining video decode issues on Exynos are not EVDA-specific, so
re-enable EVDA.

BUG=chromium-os:37807
BUG=chromium:173201

TEST=local build, run on Exynos

Change-Id: I4833b0cdb878160eab238353eee49c9f9e491165
Reviewed-on: https://gerrit.chromium.org/gerrit/45258
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Tested-by: John Sheu <sheu@chromium.org>
Commit-Queue: John Sheu <sheu@chromium.org>

2 months agoRemoved auto-login switch by popular demand. 25/45225/2 firmware-spring-3833.B
Zelidrag Hornung [Tue, 12 Mar 2013 17:52:52 +0000 (10:52 -0700)]
Removed auto-login switch by popular demand.

BUG=none
TEST=make sure that 'Do you want to sign in as ...' info bar does not show up anymore.

Change-Id: I29a6cfa0bc56e75de9f6ac2338b2b7bacc0843f1
Reviewed-on: https://gerrit.chromium.org/gerrit/45225
Tested-by: Zelidrag Hornung <zelidrag@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Zelidrag Hornung <zelidrag@chromium.org>

2 months agoRemove /tmp/machine-info deletion code from session_manager. 91/44091/3
Mattias Nissler [Tue, 26 Feb 2013 20:52:32 +0000 (21:52 +0100)]
Remove /tmp/machine-info deletion code from session_manager.

This is now handled by the /etc/init/machine-info.conf script.

BUG=chromium-os:26681
TEST=/tmp/machine-info.conf is not present after session start on unowned device.

Change-Id: I313c0eb849facbbb54620c8ce8ba227e0e1c49fa
Reviewed-on: https://gerrit.chromium.org/gerrit/44091
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Mattias Nissler <mnissler@chromium.org>
Tested-by: Mattias Nissler <mnissler@chromium.org>
2 months agoPass --enable-experimental-bluetooth for BlueZ 5 00/44900/3 firmware-spring-3824.4.B firmware-spring-3824.55.B firmware-spring-3824.B
Scott James Remnant [Fri, 8 Mar 2013 01:46:54 +0000 (17:46 -0800)]
Pass --enable-experimental-bluetooth for BlueZ 5

BUG=chromium-os:38832
TEST=start ui on machine with older and newer bluez

Change-Id: Ifda54669eaaa508eeb8334e61b062ce9440321b1
Reviewed-on: https://gerrit.chromium.org/gerrit/44900
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Commit-Queue: Scott James Remnant <keybuk@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2 months agocros-xauth: mini replacement for xauth 02/44402/6
Mike Frysinger [Fri, 1 Mar 2013 19:15:16 +0000 (14:15 -0500)]
cros-xauth: mini replacement for xauth

The xauth package depends on a bunch of libs that no one else does to
support legacy formats we don't care about.  Since we only need it to
write out a <100 byte file, implement the logic ourselves.

BUG=chromium-os:39422
TEST=`./cros-xauth foo` produced a file that looks right

Change-Id: I4c2de5effcde627fcd7d4e3063892091814f6a94
Reviewed-on: https://gerrit.chromium.org/gerrit/44402
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agoDisable accelerated-overflow-scroll 22/44522/2
Chris Wolfe [Mon, 4 Mar 2013 14:55:41 +0000 (09:55 -0500)]
Disable accelerated-overflow-scroll

There are lingering bugs in accelerated overflow scrolling, so
disable it on ToT.

BUG=chromium:179714
TEST=lumpy paladin trybot

Change-Id: I296d3ca47d037cfc89ffedfd264008ea3fe939d4
Reviewed-on: https://gerrit.chromium.org/gerrit/44522
Reviewed-by: Frank Henigman <fjhenigman@chromium.org>
Commit-Queue: Chris Wolfe <cwolfe@chromium.org>
Tested-by: Chris Wolfe <cwolfe@chromium.org>
2 months agosession_manager: Modify ACCELERATED_FLAGS for EGL/GLX 33/43033/6
abhinav [Mon, 11 Feb 2013 13:49:27 +0000 (19:19 +0530)]
session_manager: Modify ACCELERATED_FLAGS for EGL/GLX

Modify session_manager_setup.sh to force
chrome to follow EGL/GLX rendering based
on egl flag defined selectively for a
specific overlay.

BUG=None
TEST=Build and boot till UI login screen
with S/W X11 Mesa libs on Ricochet overlay.
Build and boot till UI on Daisy.

Change-Id: I209fe1eac367e5a0163f79db6f9cdd6cba273416
Signed-off-by: abhinav <abhinav@chromium.org>
Signed-off-by: Arjun.K.V <arjun.kv@samsung.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/43033
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
2 months agosession: Re-enable Chrome liveness checks and use SIGFPE. 68/43968/3
Daniel Erat [Mon, 25 Feb 2013 22:33:51 +0000 (14:33 -0800)]
session: Re-enable Chrome liveness checks and use SIGFPE.

This re-enables the session manager's periodic Chrome
liveness checks via D-Bus.  It also makes the session
manager send SIGFPE rather than SIGABRT to make it easier to
distinguish liveness-check-induced crashes from other
crashes.

BUG=chromium-os:35729,chromium-os:38892
TEST=unit tests and desktopui_HangDetector pass; also
     manually tested that SIGFPE is sent after inducing a
     chrome hang via gdb

Change-Id: Iad40dc0d240bd97f4684192ec6e0160a8ea92594
Reviewed-on: https://gerrit.chromium.org/gerrit/43968
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
2 months agosession_manager_setup.sh: Remove network_change_notifer.cc logging 72/43972/2
Gaurav Shah [Tue, 20 Nov 2012 01:11:47 +0000 (17:11 -0800)]
session_manager_setup.sh: Remove network_change_notifer.cc logging

crosbug.com/34399 was recently root caused and fixed. So remove the logging
we added to help investigate it.

BUG=chromium-os:34399
TEST=see no vlogs network_change_notifier

Change-Id: Ied1c1f611d9d2b3bdd96d24b133e3972ba5a179c
Reviewed-on: https://gerrit.chromium.org/gerrit/43972
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
2 months agoRemove unused SessionManagerImpl::CurrentUser() 69/43969/2
Chris Masone [Mon, 25 Feb 2013 22:38:30 +0000 (14:38 -0800)]
Remove unused SessionManagerImpl::CurrentUser()

This method was incorrectly tagged as being an override.  It's
also totally unused, though, so just remove it.

BUG=chromium-os:39222
TEST=unit tests

Change-Id: I3ef9d27c1cf5be0640e4fa53a5e1d202e512b910
Reviewed-on: https://gerrit.chromium.org/gerrit/43969
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Guozhi Wei <carrot@google.com>
Reviewed-by: Chris Masone <cmasone@chromium.org>
3 months agologin_manager: Updating common.mk to ToT to enable profiling 88/42788/3
Ryan Harrison [Wed, 6 Feb 2013 21:41:47 +0000 (16:41 -0500)]
login_manager: Updating common.mk to ToT to enable profiling

This update replaces the current common.mk used in this project with the newest
version. This will allow all of the common.mk based projects to be on the same
version for debugging and enables profiling support.

BUG=chromium-os:37854
TEST=Exectuted the following commands to confirm the build works:
     MODE=profiling cros_workon_make --board=link
     MODE=profiling cros_workon_make --board=link --test
     cros_workon_make --board=link
     cros_workon_make --board=link --test
     Repeated these with emerge-link, USE=profiling, and
     FEATURES=test as need.
     For the emerge command with profiling and testing enable, confirmed the
     appropriate coverage files were created in /usr/share/profiling/...

Change-Id: I168c48af4f3997a12449b9ba75b0b4302202e456
Reviewed-on: https://gerrit.chromium.org/gerrit/42788
Tested-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>

3 months agoSet audio buffer size to 2048. 02/43702/3
Dylan Reid [Thu, 21 Feb 2013 01:52:32 +0000 (17:52 -0800)]
Set audio buffer size to 2048.

Chrome recently changed the default buffer size from 2048 to 512.  Set
it back to 2048 because 512 causes problems with USB audio devices.
This needs to be fixed, but will not happen in time to be merged to
R26.

BUG=chromium-os:39017
TEST=gmerge chromeos-login and check audio buffer size.

Change-Id: Ibd9c987737c65fda4cddf0c85736d39ef2a0c7e9
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43702
Reviewed-by: Chris Masone <cmasone@chromium.org>
3 months agoUnify shutdown code pathways in SessionManagerService 58/43558/4
Chris Masone [Tue, 19 Feb 2013 23:58:13 +0000 (15:58 -0800)]
Unify shutdown code pathways in SessionManagerService

I added a ScheduleShutdown() method for SessionManagerImpl to call
that was a bit redundant with the private method SetExitAndServiceShutdown.
This change converts the former into a convenience wrapper around the
latter.

BUG=None
TEST=unit
TEST=Smoke suite

Change-Id: Iab99cb941ad4abd442b44e9b7b285441703419ef
Reviewed-on: https://gerrit.chromium.org/gerrit/43558
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
3 months agoRemove deprecated MessageLoop calls from SessionManagerService 40/43540/5
Chris Masone [Tue, 19 Feb 2013 22:22:42 +0000 (14:22 -0800)]
Remove deprecated MessageLoop calls from SessionManagerService

MessageLoop::Run() is deprecated.  Replace with instantiation and
use of RunLoop objects.

BUG=chromium-os:38845
TEST=unit
STATUS=Fixed

Change-Id: I19f3a49af077c8bb6256e8ed8d054746d354101c
Reviewed-on: https://gerrit.chromium.org/gerrit/43540
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
3 months agoTemporarily disable EVDA for Snow until related bugs are fixed. 62/43562/4
Pawel Osciak [Wed, 20 Feb 2013 00:05:41 +0000 (16:05 -0800)]
Temporarily disable EVDA for Snow until related bugs are fixed.

BUG=chromium:173201
TEST=manual

Change-Id: I504911d7713e270e7c17e51fa0fb5a6ae692d9ef
Reviewed-on: https://gerrit.chromium.org/gerrit/43562
Reviewed-by: John Sheu <sheu@chromium.org>
Commit-Queue: Pawel Osciak <posciak@chromium.org>
Tested-by: Pawel Osciak <posciak@chromium.org>
3 months agoAdd /var/run bind mount for debugfs GPU memory dir 46/43446/2
James Cook [Fri, 15 Feb 2013 23:47:36 +0000 (15:47 -0800)]
Add /var/run bind mount for debugfs GPU memory dir

/sys/kernel/debug is now only readable by debugd. However, Chrome
sometimes needs real-time access to GEM object memory information in
/sys/kernel/debug/dri/0. Add a bind mount for this specific directory
to /var/run.

BUG=chromium:175828
TEST=manual, verify /var/run/debugfs_gpu exists and files inside are
readable by chronos

Change-Id: I6d7ece58359a2e4a40204ccc94fbe6891df659bc
Reviewed-on: https://gerrit.chromium.org/gerrit/43446
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Tested-by: James Cook <jamescook@chromium.org>
3 months ago[login_manager] Build against new libchrome, libchrome_crypto 21/43121/5
Chris Masone [Tue, 12 Feb 2013 19:52:07 +0000 (11:52 -0800)]
[login_manager] Build against new libchrome, libchrome_crypto

The main difference is that MessageLoop::RunAllPending() -- used
a lot in unit tests -- has been removed.  It's replaced with a
RunLoop class in libchrome, so convert test code to use that
instead.

CQ-DEPEND=CL:43122 CL:43099 CL:43100

BUG=chromium-os:38842
TEST=build and run unittests.

Change-Id: Id46c54d2302c1df22d117b6ecbbba9bc7d7135cb
Reviewed-on: https://gerrit.chromium.org/gerrit/43121
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

3 months agosession_manager: Unset --enable-hang-detection. 39/43239/2
Daniel Erat [Thu, 14 Feb 2013 00:11:43 +0000 (16:11 -0800)]
session_manager: Unset --enable-hang-detection.

This turns off the session manager's Chrome liveness checks
to determine if they're responsible for an increase in
Chrome SIGABRT crashes within poll() in 25.

BUG=chromium-os:38892
TEST=manual: built an image; flag isn't passed

Change-Id: Iadbc7d80fd736b9d662a9aaff40c2d8a6248907c
Reviewed-on: https://gerrit.chromium.org/gerrit/43239
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
3 months agosession: Let "power" user call StopSession D-Bus method. 73/42973/2 stabilize-bluetooth-smart
Daniel Erat [Sat, 9 Feb 2013 00:35:59 +0000 (16:35 -0800)]
session: Let "power" user call StopSession D-Bus method.

The power manager needs to be able to call the session
manager's StopSession method if Chrome has set a policy
where users are logged out after being inactive.

BUG=chromium-os:38281
TEST=manual: user is logged out after timeout after setting
     idle action to stop_session
TBR=cmasone@chromium.org

Change-Id: I95762bed903b6fd2761edf18b6d0baad0c91b7de
Reviewed-on: https://gerrit.chromium.org/gerrit/42973
Commit-Queue: Daniel Erat <derat@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
3 months agoEnable platform specific optimizations on all Exynos based machines 02/42902/5
Vincent Palatin [Thu, 7 Feb 2013 23:06:55 +0000 (15:06 -0800)]
Enable platform specific optimizations on all Exynos based machines

We want to use EVDA and libvpx specific NEON optimizations on all boards
using Exynos system on chips.
So we just check for the "exynos" USE flag (added to the IUSE clause of
the ebuild) instead of testing the board name.

BUG=chrome-os-partner:17747
TEST=on Spring and Snow, run "ps aux | grep exynos" and see Chrome processes
running with the "--use-exynos-vda" flag.
on Link, run trybot software and check chrome processes flags.

CQ-DEPEND=I62da533ea9e9e3b82447b95aa6d4f2486a0631a7

Change-Id: I04da1244f6b51fd8de51ad09c3daf7e5205278ca
Reviewed-on: https://gerrit.chromium.org/gerrit/42902
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>

3 months agoWrite the user policy key in a subdirectory of /var/run/user_policy. 42/42542/4
Joao da Silva [Mon, 4 Feb 2013 17:31:46 +0000 (18:31 +0100)]
Write the user policy key in a subdirectory of /var/run/user_policy.

This will make it easier to cache additional data per user in that
directory, in case that is ever needed.

BUG=chromium:163318
TEST=sign-in; /var/run/user_policy/$hash/policy.pub contain the user's policy
key. sign-out; the directory has been wiped.

Change-Id: I2aeb4679350bfdb5851246604db89a19cbeed5a4
Reviewed-on: https://gerrit.chromium.org/gerrit/42542
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Joao da Silva <joaodasilva@chromium.org>
Tested-by: Joao da Silva <joaodasilva@chromium.org>
3 months agoForce PPAPI plugin to run out of process on Daisy. 23/42423/2 stabilize-3658.0.0
Xiaohan Wang [Thu, 31 Jan 2013 23:41:33 +0000 (15:41 -0800)]
Force PPAPI plugin to run out of process on Daisy.

This is in preparation for a new Netflix plugin to be landed on Daisy, which
requires to run out of process.

In general, it is recommended to run PPAPI plugins out of process by PPAPI team.
Since currently we don't really have any PPAPI plugin running in-process on
Daisy, the risk of this change is small.

BUG=none
TEST=Tested on Daisy and existing plugins work fine.

Change-Id: Ic826ef5a407b4450deee04debe945c9066fa723f
Reviewed-on: https://gerrit.chromium.org/gerrit/42423
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Tested-by: Xiaohan Wang <xhwang@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>

3 months ago[chromeos-login] don't mount /tmp/cgroups 25/42025/2
Elly Fong-Jones [Fri, 25 Jan 2013 19:06:59 +0000 (14:06 -0500)]
[chromeos-login] don't mount /tmp/cgroups

Nobody uses it after https://chromiumcodereview.appspot.com/12036104/

BUG=chromium-os:32633
TEST=adhoc
mount | grep cgroups does not show /tmp/cgroups

Change-Id: I10d0bc88d8cb2295dce828d377b563598dcbfcb1
Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42025
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
3 months agoRevert: Disable --ui-prioritize-in-gpu-process on daisy 34/42034/2
Jonathan Backer [Fri, 25 Jan 2013 21:06:47 +0000 (16:06 -0500)]
Revert: Disable --ui-prioritize-in-gpu-process on daisy

BUG=chrome-os-partner:17175
TEST=manual

Change-Id: I8e62a013a487440a1a4ad0ef78dbbeeff9f1c48a
Reviewed-on: https://gerrit.chromium.org/gerrit/42034
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Tested-by: Jonathan Backer <backer@chromium.org>
3 months agoAdded auto-login (browser only) switch, removed unnecessary compositing switches. 48/41648/6
Zelidrag Hornung [Fri, 18 Jan 2013 18:40:27 +0000 (10:40 -0800)]
Added auto-login (browser only) switch, removed unnecessary compositing switches.

Browser auto login is stil needed on ChromeOS for following use cases:
- User can nuke their auth cookie (i.e. click on sign out) and still land on GAIA sign in page
- Auth cookie session restore does not block login and you can end up with your browser session restored before we get all GAIA cookies merged.

BUG=chromium:170948
TEST=none

Change-Id: I1982d59359a3a875756fb7b9866aa7a4664ef03c
Reviewed-on: https://gerrit.chromium.org/gerrit/41648
Commit-Queue: Zelidrag Hornung <zelidrag@chromium.org>
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Tested-by: Zelidrag Hornung <zelidrag@chromium.org>
3 months agologin: Update reference to deprecated constant. 26/41826/2
Daniel Erat [Wed, 23 Jan 2013 18:17:00 +0000 (10:17 -0800)]
login: Update reference to deprecated constant.

This changes a reference to
power_manager::kRequestRestartSignal to
kRequestRestartMethod.  (Both contain the same value,
"RequestRestart".)

BUG=none
TEST=built it

Change-Id: Id6e4c77d469b32579bd20c70d439625df75e1f4a
Reviewed-on: https://gerrit.chromium.org/gerrit/41826
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
3 months agoWrite readable copies of user policy keys in /var/run/user_policy. 51/41551/8
Joao da Silva [Thu, 17 Jan 2013 20:30:37 +0000 (21:30 +0100)]
Write readable copies of user policy keys in /var/run/user_policy.

Whenever the user policy key is loaded or persisted from the user's
vault, a copy is stored at /var/run/user_policy that is readable by
chronos. This allows the chrome process to read the user policy key to
perform additional validation.

BUG=chromium:163318
TEST=sign-in; /var/run/user_policy/$hash.pub contain the user's policy
key. sign-out; the directory has been wiped.

CQ-DEPEND=I34c96f3e5c9dc46b1ad1a053e7ba611b65e8c070

Change-Id: I91608aa3c1b03185b3b49fbe6dc3a81e7201c10e
Reviewed-on: https://gerrit.chromium.org/gerrit/41551
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Joao da Silva <joaodasilva@chromium.org>
Tested-by: Joao da Silva <joaodasilva@chromium.org>
4 months agoRemove --enable-ui-release-front-surface flag (on by default) 88/41588/2
Antoine Labour [Thu, 17 Jan 2013 23:10:11 +0000 (15:10 -0800)]
Remove --enable-ui-release-front-surface flag (on by default)

BUG=None
TEST=None

Change-Id: If969a46736c17b75f8b17d4df53fb800cd6f9679
Reviewed-on: https://gerrit.chromium.org/gerrit/41588
Reviewed-by: Jonathan Backer <backer@chromium.org>
Commit-Queue: Antoine Labour <piman@chromium.org>
Tested-by: Antoine Labour <piman@chromium.org>
4 months agoRemove --enable-gesture-tap-highlight from session_manager_setup.sh. 09/41509/3
Robert Flack [Thu, 17 Jan 2013 04:17:30 +0000 (23:17 -0500)]
Remove --enable-gesture-tap-highlight from session_manager_setup.sh.

BUG=chrome-os-partner:17293
TEST=Flag is not in chrome://version on device.

Change-Id: I73a21d7f69b6ae7f9606288a77844752b1a0a37e
Reviewed-on: https://gerrit.chromium.org/gerrit/41509
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Tested-by: Robert Flack <flackr@chromium.org>
4 months agoUse EVDA on snow. 96/41496/2
John Sheu [Thu, 17 Jan 2013 01:58:44 +0000 (17:58 -0800)]
Use EVDA on snow.

Now that the Exynos VDA has landed in Chromium, turn it on for snow
boards.

BUG=chrome-os-partner:10057
BUG=chromium-os:37807
TEST=local build, run on snow

Change-Id: Ib22ff6906d6408f1de511ae6b5a514c663511854
Reviewed-on: https://gerrit.chromium.org/gerrit/41496
Tested-by: John Sheu <sheu@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: John Sheu <sheu@chromium.org>

4 months ago[login_manager] Only one class inherits from SessionManagerTest; merge them. 20/41220/3
Chris Masone [Mon, 14 Jan 2013 19:35:04 +0000 (11:35 -0800)]
[login_manager] Only one class inherits from SessionManagerTest; merge them.

There used to be two test classes that derived from SessionManagerTest,
for code-sharing purposes.  Now there's only one, so merge the base and
derived class.

BUG=chromium-os:35215
TEST=unit tests

Change-Id: Ic5aa4dd1f8584d54ed22e601a8aac45796627df5
Reviewed-on: https://gerrit.chromium.org/gerrit/41220
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
4 months agoHandle --has-chromeos-diamond-key in session_manager_setup.sh 07/41107/2
Yasuhiro Matsuda [Fri, 11 Jan 2013 04:31:50 +0000 (20:31 -0800)]
Handle --has-chromeos-diamond-key in session_manager_setup.sh

BUG=chromium:163916
TEST=manual

Change-Id: I5890857490f427da7e83fce70b566c62b9c63e87
Reviewed-on: https://gerrit.chromium.org/gerrit/41107
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Yasuhiro Matsuda <mazda@chromium.org>
Tested-by: Yasuhiro Matsuda <mazda@chromium.org>
4 months ago[login_manager] Add unit test for browser, keygen still running at exit 84/40484/4
Chris Masone [Sat, 5 Jan 2013 00:49:52 +0000 (16:49 -0800)]
[login_manager] Add unit test for browser, keygen still running at exit

In general, the session_manager only manages a browser process.  During
"device owner" key generation, though, it is managing the lifetimes of
both the browser process and a special key generation process.

This CL adds a unit test for the case where the session_manager exits while
managing both processes.  Existing tests cover only managing the browser
process.

BUG=chromium-os:37632
TEST=unit
STATUS=Fixed

Change-Id: Ic0289024e253cf374e4c9bc7a4fb5c81d364b9f5
Reviewed-on: https://gerrit.chromium.org/gerrit/40484
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 months ago[login_manager] Add better logging around opening NSSDB 49/41149/2
Chris Masone [Fri, 11 Jan 2013 20:42:29 +0000 (12:42 -0800)]
[login_manager] Add better logging around opening NSSDB

Apparently, we are still seeing keygen fail to open the user's NSSDB.
As the db is supposed to be pre-installed in the user's cryptohome as
it's made, this is surprising.  This change adds more checks for
various kinds of problems that might exist and aborts the process
before we attempt to open the nssdb at all, so we can diagnose the
issue from crash reports.

BUG=chrome-os-partner:16365
TEST=unit
TEST=http://chromegw/i/chromiumos.tryserver/builders/alex-paladin/builds/560

Change-Id: Ibe835c226bdc19dc35956a1f94b0d34524fd1776
Reviewed-on: https://gerrit.chromium.org/gerrit/41149
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 months agoDisable --ui-prioritize-in-gpu-process on daisy 51/41151/2
Jonathan Backer [Thu, 10 Jan 2013 17:04:13 +0000 (12:04 -0500)]
Disable --ui-prioritize-in-gpu-process on daisy

BUG=chrome-os-partner:17175
TEST=manual

Change-Id: Ief05043930bb8b87ab786f06493438bd58bafa9c
Reviewed-on: https://gerrit.chromium.org/gerrit/41151
Tested-by: Jonathan Backer <backer@chromium.org>
Reviewed-by: Chris Wolfe <cwolfe@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
4 months ago[login_manager] Split DBus code into SessionManagerImpl 58/40458/6 factory-3536.B
Chris Masone [Fri, 4 Jan 2013 22:30:03 +0000 (14:30 -0800)]
[login_manager] Split DBus code into SessionManagerImpl

This is a BIG refactor to move the code that handles calls to the
SessionManager DBus interface into a new class: SessionManagerImpl.

SessionManagerService used to implement both
ProcessManagerServiceInterface and SessionManagerInterface, meaning
that it managed all of subordinate process lifetimes, the main process
event loop, and all incoming RPCs.

This change introduces SessionManagerImpl, a separate
SessionManagerInterface implementation, and removes those
responsibilities from SessionManagerService.  A small number of
methods have been added to SessionManagerInterface allow
SessionManagerImpl and SessionManagerService to communicate as needed.

Concretely, all methods exposed via RPC have been moved from
session_manager_service.{h,cc} into session_manager_impl.{h,cc}.  As
this includes pretty much all of the policy management logic,
SessionManagerImpl owns all the policy service objects now as well.
The code that's now in session_manager_impl_unittest.cc was mostly
originally taken from session_manager_dbus_unittest.cc, but has changed
enough (mostly simplified!) that gerrit doesn't consider this a rename.
Some tests (around cleaning up processes at shutdown time) were moved
to session_manager_process_unittest.cc instead, as they made more sense
there.

BUG=chromium-os:36655
TEST=unit
TEST=http://chromegw/i/chromiumos.tryserver/builders/lumpy-paladin/builds/488
TEST=suite:smoke; All OwnershipAPI autotests

Change-Id: I8deb56f46fde52709d5d4fd62e4b82487f343360
Reviewed-on: https://gerrit.chromium.org/gerrit/40458
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
4 months agosession_manager: Pass --touch-calibration flag only for Link 37/40537/3
Yufeng Shen [Mon, 7 Jan 2013 19:18:28 +0000 (14:18 -0500)]
session_manager: Pass --touch-calibration flag only for Link

The touch calibration parameter is only valid for Link board.
Also remove obsolete --enable-touch-calibration flag.

BUG=chrome-os-partner:16570
TEST=manually tested that the calibration parameter is set only
     on Link.

Change-Id: Ia14b0fbf30b56cc733e9e2e697c38b85df20f879
Reviewed-on: https://gerrit.chromium.org/gerrit/40537
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Tested-by: Yufeng Shen <miletus@chromium.org>
Commit-Queue: Yufeng Shen <miletus@chromium.org>

4 months ago[login_manager] Add ProcessManagerServiceInterface 54/40454/8
Chris Masone [Sat, 22 Dec 2012 00:05:39 +0000 (16:05 -0800)]
[login_manager] Add ProcessManagerServiceInterface

Introduce ProcessManagerServiceInterface, an abstraction layer that
will allow the DBus-facing SessionManagerService code to be pulled out
of that massive class, but still be able to call back into
SessionManagerService for the few process-management-related tasks it
needs to perform (killing/restarting the browser and a few other
things).

BUG=chromium-os:36655
TEST=unit

Change-Id: Ic0e6265af2b581efd75357425c9f7c4cb2a69773
Reviewed-on: https://gerrit.chromium.org/gerrit/40454
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 months ago[login_manager] Gather custom GMock matchers into a single file 56/40456/6
Chris Masone [Fri, 4 Jan 2013 19:24:55 +0000 (11:24 -0800)]
[login_manager] Gather custom GMock matchers into a single file

Reduces duplicate definitions of similar predicates.

BUG=chromium-os:35215
TEST=unit

Change-Id: Ie1f237f5912e838d841027ccf27697d791df2eae
Reviewed-on: https://gerrit.chromium.org/gerrit/40456
Commit-Queue: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
4 months ago[login_manager] ChildJob::SetArguments should take a vector<string> 36/40336/3
Chris Masone [Wed, 2 Jan 2013 21:31:44 +0000 (13:31 -0800)]
[login_manager] ChildJob::SetArguments should take a vector<string>

SetExtraArguments() takes a vector of arguments, while SetArguments()
was taking a string that needed to be parsed into a vector of strings.
That's silly.  Make the two calls consistent.

BUG=chromium-os:35215
TEST=unit tests
TEST=smoke suite
TEST=ensure, manually, that signing in as guest works.
TEST=http://chromegw/i/chromiumos.tryserver/builders/lumpy-paladin/builds/462
TEST=http://chromegw/i/chromiumos.tryserver/builders/mario-paladin/builds/1117

Change-Id: I71d1ed6f2da5f9803bc243dcb9a9fd8ca133e111
Reviewed-on: https://gerrit.chromium.org/gerrit/40336
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

4 months ago[login_manager] Clean up some confusing paths to shutting down 99/40099/3
Chris Masone [Fri, 21 Dec 2012 22:26:56 +0000 (14:26 -0800)]
[login_manager] Clean up some confusing paths to shutting down

To support tests and some dev behavior, I had some extra abstraction around
shutting down the session manager.  I can clean up a bit of that, now.

BUG=chromium-os:35215
TEST=unit tests
TEST=run smoke suite

Change-Id: I41e1f2da343b514597de8d0c95c469f1424cd8b9
Reviewed-on: https://gerrit.chromium.org/gerrit/40099
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>

5 months agoAllow Xorg to startup as nonroot user 01/39301/3
John Sheu [Wed, 28 Nov 2012 22:22:48 +0000 (14:22 -0800)]
Allow Xorg to startup as nonroot user

Allow the Xorg server to be run as sudo to some other user.  Presently
still using "root" user, since the other pieces of the nonroot-X story
aren't in yet, but when that happens we should just be able to change
the "XUSER" var in session_manager_setup.sh and we'll be all good to go.

Towards the nonroot-X effort.

TEST=local build, run on x86, ARM
BUG=chromium-os:388

Change-Id: Ic46af8163b724ef18e341659512af16786ffd130
Reviewed-on: https://gerrit.chromium.org/gerrit/39301
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: John Sheu <sheu@chromium.org>
Tested-by: John Sheu <sheu@chromium.org>
5 months agosession_manager: Remove ply-image --clear. 28/39928/3
Daniel Erat [Wed, 19 Dec 2012 01:23:35 +0000 (17:23 -0800)]
session_manager: Remove ply-image --clear.

This removes session_manager_setup.sh's call to ply-image
--clear.  This call is being moved to a dedicated Upstart
job so that it will be reaped after it exits.

BUG=chromium-os:11285
TEST=manual
CQ-DEPEND=Ic31e8c0a32ed7d7fe686dde8937bd4bdec7f1f96

Change-Id: Ibba36ac9a78adc4713bd4530d53db477659c66ad
Reviewed-on: https://gerrit.chromium.org/gerrit/39928
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
5 months ago[login_manager] Make check for 'demouser' be 'demouser@' instead 79/39779/4
Chris Masone [Thu, 13 Dec 2012 15:27:57 +0000 (07:27 -0800)]
[login_manager] Make check for 'demouser' be 'demouser@' instead

Currently "" is passed for demo mode.  That will soon be 'demouser@', so make
my code match that expectation.

BUG=chromium-os:37004
TEST=unittests

Change-Id: Ic7bfeff33d3d0e39d095fdc581d307aacbe5c2a6
Reviewed-on: https://gerrit.chromium.org/gerrit/39779
Reviewed-by: Nikita Kostylev <nkostylev@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
5 months agoAdd --enable-accelerated-overflow-scroll flag. 87/39787/2
Chris Wolfe [Mon, 17 Dec 2012 19:39:01 +0000 (14:39 -0500)]
Add --enable-accelerated-overflow-scroll flag.

Add the chrome command-line flag to enable accelerated overflow
scroll when the highdpi USE flag is enabled.

BUG=chromium-os:37305
TEST=Modified lumpy to enable highdpi and checked ps output.

Change-Id: Id2c5010935861bc967703083e131cb2a02159b9f
Reviewed-on: https://gerrit.chromium.org/gerrit/39787
Reviewed-by: Frank Henigman <fjhenigman@chromium.org>
Tested-by: Chris Wolfe <cwolfe@chromium.org>
Commit-Ready: Chris Wolfe <cwolfe@chromium.org>

5 months agoSet LC_ALL=en_US.utf8 before launching Chrome for i18n flash support. 31/39531/2
Haixia Shi [Tue, 11 Dec 2012 01:50:08 +0000 (17:50 -0800)]
Set LC_ALL=en_US.utf8 before launching Chrome for i18n flash support.

Remove the previous patch (see https://gerrit.chromium.org/gerrit/#/c/17490/)
which sets LC_CTYPE=en_US.utf8 because LC_ALL export encompasses LC_CTYPE.

BUG=chromium:165239
TEST=the following:
(1) Song Pop and Farmville2 work with non-English OS locales (tested German, Japanese).
(2) French keyboard input still works (see crbug.com/165239#c6).

Change-Id: I5f09f60c5a28c3df90db7f0f306fc690f88e638d
Reviewed-on: https://gerrit.chromium.org/gerrit/39531
Commit-Ready: Haixia Shi <hshi@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
5 months agoRevert "Disable Flash hardware decode on Intel." 44/39644/2
Ilja H. Friedel [Thu, 13 Dec 2012 07:52:08 +0000 (23:52 -0800)]
Revert "Disable Flash hardware decode on Intel."

This reverts commit 5b321918bad433eaf3175eb5084cddcec318b2ab

The Flash binary has been updated.

Change-Id: Iefd651d46f19c094ff015aab7a3c311ef6273565
Reviewed-on: https://gerrit.chromium.org/gerrit/39644
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
5 months agoSlightly increase the cpu.shares to background rendering. 86/38886/2 stabilize2
Chris Sosa [Thu, 29 Nov 2012 05:06:39 +0000 (21:06 -0800)]
Slightly increase the cpu.shares to background rendering.

This allows us to put even lower priority processes like the update-engine
lower than background rendering. This is important to ensuring we don't hear
jank if audio from video is playing from a background tab while AU
is in progress.

BUG=chromium-os:36229
TEST=Ran with it on a Snow device.

Change-Id: I3dec5d76689cc1b6142db2dd739784abe5bfc82f
Reviewed-on: https://gerrit.chromium.org/gerrit/38886
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
5 months agosession_manager: Clean up D-Bus policy. 67/39267/2
Daniel Erat [Wed, 5 Dec 2012 22:41:00 +0000 (14:41 -0800)]
session_manager: Clean up D-Bus policy.

This removes some <deny> directives.  Per keybuk@,
"deny is the default behavior, denying further 'undoes'
allowed messages like method replies, signals, dbus-monitor
etc."

BUG=chromium-os:36912
TEST=updated 'power' and 'cras' users to have /bin/bash as
     their shells and confirmed the following:
     - RetrieveSessionState as 'power' succeeds
     - RetrieveSessionState as 'chronos' succeeds
     - RetrieveSessionState as 'cras' fails
     - EnableChromeTesting as 'chronos' fails
     (used commands like:
      su -c 'dbus-send --system \
        --dest=org.chromium.SessionManager \
        --type=method_call \
        --print-reply /org/chromium/SessionManager \
        org.chromium.SessionManagerInterface.RetrieveSessionState' \
        cras
     )

Change-Id: I9bbbfe53a7935312b44d2ffcd1d9fd5e9358fa08
Reviewed-on: https://gerrit.chromium.org/gerrit/39267
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Ready: Daniel Erat <derat@chromium.org>

5 months agosession_manager: Stop passing --enable-gview to Chrome. 91/39191/2
Daniel Erat [Tue, 4 Dec 2012 16:46:15 +0000 (08:46 -0800)]
session_manager: Stop passing --enable-gview to Chrome.

In Chrome, this flag and the code that it enabled are gone.

BUG=chromium:143164
TEST=none

Change-Id: Ied0f83dad137e611a7d22cafa6c2d63c1139f9f7
Reviewed-on: https://gerrit.chromium.org/gerrit/39191
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
5 months ago[login_manager] Switch glib signals to DBus signals 35/39035/9
Chris Masone [Sat, 1 Dec 2012 03:39:00 +0000 (19:39 -0800)]
[login_manager] Switch glib signals to DBus signals

Instead of emitting glib signals that get automagically converted
to dbus signals by dbus-glib, we should emit dbus signals directly.

This removes a dependency on dbus-glib, which is deprecated.

BUG=chromium-os:36656
TEST=unit
TEST=http://chromegw/i/chromiumos.tryserver/builders/stumpy-paladin/builds/133
TEST=http://chromegw/i/chromiumos.tryserver/builders/mario-paladin/builds/1017

Change-Id: Id56f0a6b7b53eccef4196adefacf939d79239557
Reviewed-on: https://gerrit.chromium.org/gerrit/39035
Commit-Ready: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
5 months agosession_manager: Let "power" user call D-Bus methods. 26/39126/3
Daniel Erat [Mon, 3 Dec 2012 22:52:34 +0000 (14:52 -0800)]
session_manager: Let "power" user call D-Bus methods.

This lets the new "power" user (soon to be used for running
the powerd process) call the session manager's LockScreen
and RetrieveSessionState methods.

BUG=chromium-os:36510
TEST=manual: checked powerd's log and saw that it got the
     session state and can lock the screen

Change-Id: Idc6b7d825a380caaa3cac6cd88ce2ce0605a0eb9
Reviewed-on: https://gerrit.chromium.org/gerrit/39126
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Daniel Erat <derat@chromium.org>

5 months ago[login_manager] Use signal name kConstants from right namespace 83/39083/3
Chris Masone [Tue, 27 Nov 2012 17:28:29 +0000 (09:28 -0800)]
[login_manager] Use signal name kConstants from right namespace

Many signal names used by the session_manager were originally defined in
the chromium namespace, as the browser was their intended target.  This
doesn't make sense in the DBus world, where signals are always broadcast.

Use the kConstants defined in the login_manager namespace instead.

BUG=chromium-os:36668
TEST=build, unit test.
TEST=http://chromegw/i/chromiumos.tryserver/builders/mario-paladin/builds/1009

CQ-DEPEND=Id6a94e79702b0cff75945573f8f8215e672a08f6

Change-Id: Ie38d7e209e72bce3832a3766b99101c845ada192
Reviewed-on: https://gerrit.chromium.org/gerrit/39083
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>

5 months agoinit: Remove unneeded Chrome flags. 87/39087/2
Daniel Erat [Tue, 13 Nov 2012 22:28:05 +0000 (14:28 -0800)]
init: Remove unneeded Chrome flags.

This removes a bunch of command-line flags that we no longer
need to pass to Chrome:

  --compress-sys-feedback      (doesn't exist)
  --enable-accelerated-layers  (doesn't exist)
  --enable-accelerated-plugins (doesn't exist)
  --load-opencryptoki          (hardcoded on real devices)
  --no-first-run               (hardcoded for Chrome OS)
  --reload-killed-tabs         (doesn't exist)
  --scroll-pixels              (doesn't exist)

BUG=chromium:143164
TEST=built and booted it

Change-Id: I56c69c533b9e6c1bcf909e77029e552059cdac3b
Reviewed-on: https://gerrit.chromium.org/gerrit/39087
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Daniel Erat <derat@chromium.org>

5 months ago[login_manager] Use Async method call for liveness checking 23/38923/4
Chris Masone [Wed, 28 Nov 2012 17:49:00 +0000 (09:49 -0800)]
[login_manager] Use Async method call for liveness checking

Chromium apparently supports method calls.  So, instead of pinging with a signal
and waiting for a callback, the session_manager should just call Chromium and
wait for a response asynchronously.

BUG=chromium-os:36686
TEST=unit
TEST=create a VM image and run mod_test_image_for_dbusspy.sh on it.  Boot and run dbus-monitor --system --monitor.  Wait for >60s and you should see a CheckLiveness call.
STATUS=Fixed

Change-Id: I3877a12955a927394ecfa522cb35f45f93a8b0f1
Reviewed-on: https://gerrit.chromium.org/gerrit/38923
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>

5 months ago[login-manager] enable logging for error_screen_handler and network_portal_detector... 92/38592/6
Yuri Gorshenin [Fri, 23 Nov 2012 11:18:49 +0000 (15:18 +0400)]
[login-manager] enable logging for error_screen_handler and network_portal_detector modules.

This enables logging for network_portal_detector module.

network_portal_detector is a new module, that initiates portal
detection on the signin-screen. As we're planning to make it a default
portal detection module on the signin-screen, logging must be enabled
for it (at least until we will have enough logs from different places
with networks behind captive portal).

BUG=chromium:123579
TEST=manual tests on Lumpy

Change-Id: Ief4b8e63bdfa7c39af7b5be45acb387dd6e5a05e
Reviewed-on: https://gerrit.chromium.org/gerrit/38592
Reviewed-by: Yuri Gorshenin <ygorshenin@chromium.org>
Tested-by: Yuri Gorshenin <ygorshenin@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Yuri Gorshenin <ygorshenin@chromium.org>

5 months agoDisable Flash hardware decode on Intel. 77/38977/2
Ilja H. Friedel [Fri, 30 Nov 2012 02:22:50 +0000 (18:22 -0800)]
Disable Flash hardware decode on Intel.

Fallback to software is broken. This won't affect the ARM binary.
BUG=chromium:163219
TEST=None.

Change-Id: If82decfa9b8bcf0fb19a9f6c1f3fffd9058cb895
Reviewed-on: https://gerrit.chromium.org/gerrit/38977
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Commit-Ready: Haixia Shi <hshi@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
5 months agoRevert "session_manager: Reset stdin/stdout/stderr to /dev/null before exec-ing child" 88/38788/2
Gaurav Shah [Wed, 28 Nov 2012 01:43:28 +0000 (17:43 -0800)]
Revert "session_manager: Reset stdin/stdout/stderr to /dev/null before exec-ing child"

This reverts commit 631908b971f979aad7bfc60b13d074409967fa8b

Some non-Chrome internal components (Pepper flash, GPU driver, etc) rely on stderr being redirected to the /var/log/ui* for their logging (since they can't use the Chrome's logging infrastructure).

BUG=chromium-os:36688

Change-Id: I280d9c450580fc1e0965af334481041816e3d92e
Reviewed-on: https://gerrit.chromium.org/gerrit/38788
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
5 months agoEnable Flash hardware video decode. 15/38715/2
Ilja H. Friedel [Tue, 27 Nov 2012 05:56:26 +0000 (21:56 -0800)]
Enable Flash hardware video decode.

This enables Flash hardware video decoding on all platforms, in
particular on Intel SNB+.

TEST=Youtube on Lumpy and Arrow.
BUG=chromium:140363

Change-Id: I20539c9cdbd4669b4ed8a51ea454ce0e67e76c87
Reviewed-on: https://gerrit.chromium.org/gerrit/38715
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>