Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 14682021: [Android] Always set "mobile user agent" switch to the right vlaue when launching the browser proce… (Closed)

Created:
7 years, 7 months ago by Yaron
Modified:
7 years, 7 months ago
Reviewers:
joth, bulach
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199501

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yaron
Note: this would affect android_webview but I don't think it matters. It's passed along to ...
7 years, 7 months ago (2013-05-10 03:15:20 UTC) #1
Yaron
crbug.com/230480 (which I've reopened) has more context on why this is happening more often now.
7 years, 7 months ago (2013-05-10 03:17:31 UTC) #2
bulach
lgtm, but joth is certainly more familiar. I'd suggest tweaking the description a little bit ...
7 years, 7 months ago (2013-05-10 08:17:20 UTC) #3
joth
addDeviceSpecificUserAgentSwit**ch() also has the side effect of setting the "TABLET_UI" flag, if appropriate. [Besides this ...
7 years, 7 months ago (2013-05-10 09:14:15 UTC) #4
Yaron
On 2013/05/10 09:14:15, joth wrote: > addDeviceSpecificUserAgentSwit**ch() also has the side effect of setting > ...
7 years, 7 months ago (2013-05-10 16:39:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/14682021/1
7 years, 7 months ago (2013-05-10 17:36:23 UTC) #6
commit-bot: I haz the power
7 years, 7 months ago (2013-05-10 17:36:51 UTC) #7
Message was sent while issue was closed.
Change committed as 199501

Powered by Google App Engine
This is Rietveld 408576698