[Android] Always set "mobile user agent" switch to the right vlaue when launching...
commit0e0440933007f7d8a2e8d106605d53b5a2f2d347
authoryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 10 May 2013 17:36:49 +0000 (10 17:36 +0000)
committeryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 10 May 2013 17:36:49 +0000 (10 17:36 +0000)
tree19a60c53b93627a8f67ef2386d90691cdc56b367
parentfaf85fc1c2267535da491e823b1f1edbd305febe
[Android] Always set "mobile user agent" switch to the right vlaue when launching the browser process.

This fixes the user agent for the browser process when the browser process has been started by an activity other than Main, like sync, bookmark provider, etc. If
chrome is started as a background process, the switch is never added. Since the
user agent is computed early on during start-up and not recomputed (from users
of content::GetUserAgent) this can lead to incorrect UA being reported and
broken results.

We probably shouldn't do it this way long-term but this is a minimal fix for m27.

NOTRY=true
BUG=237471

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199501 0039d316-1c4b-4281-b951-d872f2087c98
content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java