Move thread join to worker pool.

BUG=67044, 119550
R=abodenha@chromium.org, tonyg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196561 0039d316-1c4b-4281-b951-d872f2087c98
[Translate] Expose whether the user is within a navigation session as part of the infobar delegate

  - Add a new method to language state that returns if the user is navigating over translated links.
  - Use that method for the existing AutoTranslate() implementation.

BUG=234159

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196562 0039d316-1c4b-4281-b951-d872f2087c98
Update libvpx for VP9 preview

Make sure all SSE2 files are in the correct list

Pull Windows compilation warning fixes from upstream

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196563 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196564 0039d316-1c4b-4281-b951-d872f2087c98
Fixes for the local NTP:
* When the query is backspaced, show blank page.
* Prevent suggestion box flickering - there's still some flickering due to multiple onnativesuggestions firing on the same query with different *non-zero* number of suggestions - not sure the best way to handle this.
* Add scrollbars
* Pixel/style adjustments of logo/fakebox, etc. to match online NTP.


BUG=223608,233965,230172,235127

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196566 0039d316-1c4b-4281-b951-d872f2087c98
Change the default policy value back to true.

So enterprise user will be able to use chrome os registration by default. This
has gone through a long discussion and finally all PM/TL's agreed on it.

BUG=233666
TEST=Manually tested against test dm server and verfied the change is working.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196567 0039d316-1c4b-4281-b951-d872f2087c98
Fix Views Bubbleborder minimium dimension clamping.

My http://crrev.com/196391 and http://crrev.com/196473 caused the bug.
This CL fixes the minimum dimension calculations for bubbles without arrows.

BUG=235569
TEST=Omnibox Popup bubble border fits well, no other bubble border regressions.
R=oshima@chromium.org,sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196568 0039d316-1c4b-4281-b951-d872f2087c98
Add ability to sign-out of Google directly from profile switcher menu.

As part of the plan to make sync sign-in more integral to a user's profile, we're adding an explicit ability to "sign out" of the profile in place of signing out of Google inside the content area.  This CL adds that basic sign-out functionality by adding a "sign out" button to the avatar menu that, when clicked, goes through the steps of signing out of Google and closing all browser windows associated with that profile.

Future CLs will do the Right Thing(tm) of requiring sign-in before opening that profile so that the tabs can resume where there were, just as though there had been no sign-out event.

The UI included here is temporary.  A new profile-switcher menu is being discussed and the core functionality included here will eventually get triggered from that once the design is finalized.  In other words, the UI presented here will eventually be replaced.

See it in action:
https://docs.google.com/a/google.com/file/d/0B4S7cIAPVn9XdzJFZXl2SncxMlE/edit?usp=sharing

Previous avatar menu:
https://docs.google.com/a/google.com/file/d/0B4S7cIAPVn9XY3dZMXRUNGtHd3M/edit?usp=sharing

To test:
- launch with --enable-profile-signout
- create a second profile (so Avatar menu appears)
- sign-in to a Google account (like gmail)
- open Avatar menu and click the "sign out" button
- (window will close when sign-out is complete)
- re-open profile
- go to a Google account
- note that you are not signed in

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196569 0039d316-1c4b-4281-b951-d872f2087c98
WebContentsVideoCapture: Drop frames from captures that complete after subsequently started captures.

BUG=235491

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196570 0039d316-1c4b-4281-b951-d872f2087c98
Autogenerate thunk for PPB_ImageData.

This changes idl_thunk.py to use functions from ppapi/shared_impl when the
first argument to a function is not PP_Instance or PP_Resource. This pattern
seems to be used in multiple IDL files.

I also needed to clean up the APIs a bit so the function signatures matched up
with what idl_thunk.py emits.

Tested:
  Built chrome and browser_tests.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196571 0039d316-1c4b-4281-b951-d872f2087c98
Omnibox view should only handle VK_PRIOR and VK_NEXT if no other modifiers like shift, control or alt are present.

BUG=225520

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196572 0039d316-1c4b-4281-b951-d872f2087c98
Fixing invalid red border persisting in views UI between edit & add.

R=estade@chromium.org,sky@chromium.org
BUG=234442
TEST=manual
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196573 0039d316-1c4b-4281-b951-d872f2087c98
Removed painting metrics from smoothness benchmark.

BUG=232092

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196574 0039d316-1c4b-4281-b951-d872f2087c98
Revert 196563 "Update libvpx for VP9 preview"

Still breaking official Chrome linux bots.

https://chromium-build.appspot.com/buildbot/chromium.chrome/builders/Google%20Chrome%20Linux/builds/29754
https://chromium-build.appspot.com/buildbot/chromium.chrome/builders/Google%20Chrome%20Linux%20%28Precise%29/builds/28

> Update libvpx for VP9 preview
> 
> Make sure all SSE2 files are in the correct list
> 
> Pull Windows compilation warning fixes from upstream
> 
> Review URL: https://chromiumcodereview.appspot.com/13868008

TBR=johannkoenig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196579 0039d316-1c4b-4281-b951-d872f2087c98
Webapp changes to support third party authentication

This uses an OAuth flow on the server to fetch the token and shared secret. There are two implementations for this:

* The current one manually opens a tab and asks for a redirect to a blank page in talkgadget, which we content-script to sendmessage the token/secret back to the extension (fairly similar to our OAuth trampoline)

* Once we're running on appsv2, and identity is out of experimental, we can use launchWebAuthFlow to do this.

This includes an interstitial to ask for an optional permission to the given host. The window.open method doesn't actually need this, but the identity API one does, so I thought I'd leave it in to make its behavior match closely the one of the identity API, which is the one we'll use in the future.

Most of the code is shared between these two versions, the only different pieces are the mechanics to open the window/launchWebFlow, and to send the redirectedUrl back to the webapp for parsing.

BUG=115899

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196580 0039d316-1c4b-4281-b951-d872f2087c98
Enable receiving a list of markers in text with spellcheck requests

This CL enables Blink to send a list of markers together with text to be
spellchecked. The CL is structured such that Blink can either send the markers
or not, depending on Blink version. Once Blink dependency is rolled, I will
address the TODOs in the CL.

BUG=170514

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196581 0039d316-1c4b-4281-b951-d872f2087c98
Omnibox refactor, introduced OmniboxController.

For the moment, OmniboxController is just a light-weight class between the AutocompleteController and the OmniboxEditModel. The final goal is to remove any reference to the AutocompleteController (and the SearchProvider) from OmniboxEditModel. This is the first step.

BUG=234733

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196582 0039d316-1c4b-4281-b951-d872f2087c98
Fix leak in ExternalInstallGlobalError.

We were leaking an ExternalInstallDialogDelegate if the global error was never accepted or canceled.

BUG=234741,229083

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196583 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196584 0039d316-1c4b-4281-b951-d872f2087c98
Translate: browser test to verify whole translate process

BUG=none
TEST=browser_tests --gtest_filter='TranslateBrowserTest.Translate'

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196587 0039d316-1c4b-4281-b951-d872f2087c98