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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java

Issue 14682021: [Android] Always set "mobile user agent" switch to the right vlaue when launching the browser proce… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
index f092b29cc667ed6e17d4993ba73c67f9e70f58fb..d4dd6f06e5c6ca3af6b930b5c095d851494f8fd4 100644
--- a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
+++ b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
@@ -6,14 +6,11 @@ package org.chromium.content.browser;
import android.app.ActivityManager;
import android.content.Context;
-import android.content.res.Resources;
import android.util.Log;
import org.chromium.base.JNINamespace;
import org.chromium.content.app.ContentMain;
import org.chromium.content.app.LibraryLoader;
-import org.chromium.content.browser.PepperPluginManager;
-import org.chromium.content.common.CommandLine;
import org.chromium.content.common.ProcessInitException;
// NOTE: This file hasn't been fully upstreamed, please don't merge to downstream.
@@ -88,6 +85,8 @@ public class AndroidBrowserProcess {
// Normally Main.java will have already loaded the library asynchronously, we only
// need to load it here if we arrived via another flow, e.g. bookmark access & sync setup.
LibraryLoader.ensureInitialized();
+ // TODO(yfriedman): Remove dependency on a command line flag for this.
+ DeviceUtils.addDeviceSpecificUserAgentSwitch(context);
Context appContext = context.getApplicationContext();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698