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

Unified Diff: content/app/content_main_runner.cc

Issue 178263007: Simplify the user agent overriding code, in preparation for moving it out of src/webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: update Created 6 years, 9 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 | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
===================================================================
--- content/app/content_main_runner.cc (revision 255375)
+++ content/app/content_main_runner.cc (working copy)
@@ -384,7 +384,7 @@
// initialized.
if (command_line.HasSwitch(switches::kUserAgent)) {
webkit_glue::SetUserAgent(
- command_line.GetSwitchValueASCII(switches::kUserAgent), true);
+ command_line.GetSwitchValueASCII(switches::kUserAgent));
}
// The StatsTable must be initialized in each process; we already
@@ -746,7 +746,7 @@
// defaults to the user agent set during SetContentClient().
if (command_line.HasSwitch(switches::kUserAgent)) {
webkit_glue::SetUserAgent(
- command_line.GetSwitchValueASCII(switches::kUserAgent), true);
+ command_line.GetSwitchValueASCII(switches::kUserAgent));
}
if (!process_type.empty())
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698