Fixed crash wnen a user session is added on top of a new user account.

BUG=295842
TEST=manual, see repro steps

Review URL: https://chromiumcodereview.appspot.com/23726051

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224559 0039d316-1c4b-4281-b951-d872f2087c98
cc: Implement deadline scheduling disabled by default

This patch adds logic to the Scheduler to actually use the BeginFrame
and deadline, but is not enabled by default on any platform yet. This
will ensure emulation of old scheduler in the fallback path is sane.
Emulation of the old path is implemented using an immediate deadline.

SchedulerStateMachine::begin_frame_state has been added and can be in one
of 4 states: Idle, InsideBeginFrame, DeadlinePending, or InsideDeadline.

Notable restrictions of the states are:
- We start a commit as soon after InsideBeginFrame as we can, since the
BeginFrame will be coordinated with user input. (True on Android.
Soon to be true on other platforms.)
- We do not start a commit while Idle, in order to wait for the next
batch of user input.
- Draw and swap only occurs during the InsideDeadline state.

The deadlines of the Browser and Renderer compositors can be nested in
order to have a total draw latency of < 1 frame when starting off. If we
can't hit 1 frame of latency consistently, we will fall back to a higher
latency mode to increase throughput.

TBR=enne@chromium.org
BUG=243461

Review URL: https://chromiumcodereview.appspot.com/24070006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224560 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224559
Fix 10.6 SDK build after r223715.

Explicitly tell the compiler that objects are NSViews* (rather than just NSObjects*) to pacify it.

BUG=290403,295785
TEST=clean compile
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/24140005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224561 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224561
Whitelist the security token apps to be externally_connectable from incognito
profiles.

BUG=295845
R=yoz@chromium.org

Review URL: https://codereview.chromium.org/24141008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224562 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 224562