Fix threading issue in CookieMonster task ordering.

If CookieMonster is used from a thread other than the IO thread, tasks
could become reordered (see the bug for info on the race condition). Fix
this by changing the sequence of events in OnKeyLoaded so that the
loaded key is not added to loaded_keys_ until after all the pending
queued tasks for that key have already been executed.

DeferredCookieTaskTest.DeferredTaskOrder was supposed to cover this
exact scenario but unfortunately the test was wrong and was asserting an
incorrect sequence of events, which is why it passed. The test has been
updated to assert a valid sequence of events and to make its correctness
more obvious.

NOTRY=true
BUG=308589

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231917 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 231917
Move extraneous dot from inside placeholder to outside

The period that sould show up at the end of the sentence was erroneously
included in the <ph></ph> placeholder, and is consequently showing up in the
wrong place in some translations.

BUG=313218

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231918 0039d316-1c4b-4281-b951-d872f2087c98
cc: Enable deadline scheduler by default for unit tests

BUG=310591

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

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

Follow up to https://codereview.chromium.org/47023009/ for
the content_perftests build target.

Always run the perf tests serially, to avoid distorting
perf measurements with randomness resulting from running
in parallel.

R=piman
BUG=236893

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

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