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

Unified Diff: content/browser/browser_child_process_host_impl_android.cc

Issue 11066087: Upstream BrowserChildProcessHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: content/browser/browser_child_process_host_impl_android.cc
diff --git a/content/browser/browser_child_process_host_impl_android.cc b/content/browser/browser_child_process_host_impl_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5c7f228eed6a7744c84658d81d44ce174821adef
--- /dev/null
+++ b/content/browser/browser_child_process_host_impl_android.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/browser_child_process_host_impl.h"
+
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
+
+// static
+void BrowserChildProcessHostImpl::AppendCommonChildCommandLine(
+ CommandLine* cmd_line) {
+ // The child process needs some essential information very early during its
+ // life. We pass these as arguments
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kUseMobileUserAgent)) {
+ cmd_line->AppendSwitch(switches::kUseMobileUserAgent);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698