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

Side by Side Diff: content/public/common/content_switches.cc

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 // Use fake device for MediaStream to replace actual camera and microphone. 904 // Use fake device for MediaStream to replace actual camera and microphone.
905 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 905 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
906 906
907 // Bypass the media stream infobar by selecting the default device for media 907 // Bypass the media stream infobar by selecting the default device for media
908 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. 908 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
909 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream"; 909 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
910 910
911 // Set when Chromium should use a mobile user agent. 911 // Set when Chromium should use a mobile user agent.
912 const char kUseMobileUserAgent[] = "use-mobile-user-agent"; 912 const char kUseMobileUserAgent[] = "use-mobile-user-agent";
913 913
914 // A string used to override the default user agent with a custom one.
915 const char kUserAgent[] = "user-agent";
916
917 // On POSIX only: the contents of this flag are prepended to the utility 914 // On POSIX only: the contents of this flag are prepended to the utility
918 // process command line. Useful values might be "valgrind" or "xterm -e gdb 915 // process command line. Useful values might be "valgrind" or "xterm -e gdb
919 // --args". 916 // --args".
920 const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; 917 const char kUtilityCmdPrefix[] = "utility-cmd-prefix";
921 918
922 // Causes the process to run as a utility subprocess. 919 // Causes the process to run as a utility subprocess.
923 const char kUtilityProcess[] = "utility"; 920 const char kUtilityProcess[] = "utility";
924 921
925 // The utility process is sandboxed, with access to one directory. This flag 922 // The utility process is sandboxed, with access to one directory. This flag
926 // specifies the directory that can be accessed. 923 // specifies the directory that can be accessed.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 #endif 1036 #endif
1040 1037
1041 #if defined(OS_POSIX) 1038 #if defined(OS_POSIX)
1042 // Causes the child processes to cleanly exit via calling exit(). 1039 // Causes the child processes to cleanly exit via calling exit().
1043 const char kChildCleanExit[] = "child-clean-exit"; 1040 const char kChildCleanExit[] = "child-clean-exit";
1044 #endif 1041 #endif
1045 1042
1046 // Don't dump stuff here, follow the same order as the header. 1043 // Don't dump stuff here, follow the same order as the header.
1047 1044
1048 } // namespace switches 1045 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698