Repository navigation
Expand file tree
/
Copy pathChromium_Command_Line_Switches.rb
More file actions
12686 lines (12388 loc) · 299 KB
/
Copy pathChromium_Command_Line_Switches.rb
File metadata and controls
12686 lines (12388 loc) · 299 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
cheatsheet do
title 'Chromium Command Line Switches'
docset_file_name 'Chromium_Command_Line_Switches'
keyword 'chromiumswitches'
source_url 'http://cheat.kapeli.com'
category do
id 'Chromium Command Line Switches'
entry do
name <<-'END'
```
--/prefetch:1
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
`/prefetch:#` arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same `/prefetch:#` argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no `/prefetch:#` arguments were used. Note that the browser process has no `/prefetch:#` argument; as such all other processes must have one in order to avoid polluting its profile. Note: # must always be in [1, 8]; otherwise it is ignored by the Windows prefetcher.
END
end
entry do
name <<-'END'
```
--/prefetch:2
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
No description
END
end
entry do
name <<-'END'
```
--/prefetch:3
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
No description
END
end
entry do
name <<-'END'
```
--/prefetch:4
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
No description
END
end
entry do
name <<-'END'
```
--/prefetch:5
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
`/prefetch:#` arguments for the browser process launched in background mode and for the watcher process. Use profiles 5, 6 and 7 as documented on kPrefetchArgument* in content\_switches.cc.
END
end
entry do
name <<-'END'
```
--/prefetch:6
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
No description
END
end
entry do
name <<-'END'
```
--/prefetch:8
```
END
notes <<-'END'
**The constant OS\_WIN must be defined.**
`/prefetch:#` argument shared by all process types that don't have their own. It is likely that the prefetcher won't work for these process types as it won't be able to observe consistent file reads across launches. However, having a valid prefetch argument for these process types is required to prevent them from interfering with the prefetch profile of the browser process.
END
end
entry do
name <<-'END'
```
--0
```
END
notes <<-'END'
Value of the `--profiler-timing` flag that will disable timing information for chrome://profiler.
END
end
entry do
name <<-'END'
```
--?
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--accept-resource-provider
```
END
notes <<-'END'
Flag indicating that a resource provider must be set up to provide cast receiver with resources. Apps cannot start until provided resources. This flag implies `--alsa-check-close-timeout=0`.
END
end
entry do
name <<-'END'
```
--adaboost
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--aec-refined-adaptive-filter
```
END
notes <<-'END'
Enables a new tuning of the WebRTC Acoustic Echo Canceler (AEC). The new tuning aims at resolving two issues with the AEC: https://bugs.chromium.org/p/webrtc/issues/detail?id=5777 https://bugs.chromium.org/p/webrtc/issues/detail?id=5778
TODO(hlundin): Remove this switch when experimentation is over; crbug.com/603821.
END
end
entry do
name <<-'END'
```
--agc-startup-min-volume
```
END
notes <<-'END'
Override the default minimum starting volume of the Automatic Gain Control algorithm in WebRTC used with audio tracks from getUserMedia. The valid range is 12-255. Values outside that range will be clamped to the lowest or highest valid value inside WebRTC.
TODO(tommi): Remove this switch when crbug.com/555577 is fixed.
END
end
entry do
name <<-'END'
```
--aggressive
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--aggressive-cache-discard
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--aggressive-tab-discard
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--allow-cross-origin-auth-prompt
```
END
notes <<-'END'
Allows third-party content included on a page to prompt for a HTTP basic auth username/password pair.
END
end
entry do
name <<-'END'
```
--allow-data-roaming-by-default
```
END
notes <<-'END'
If this flag is set, enable data roaming in the cellular network by default upon system start if it's an unmanaged device. This flag is used by Rialto device to obtain device policy during OOBE since the Rialto device has no display and and only connects over cell.
END
end
entry do
name <<-'END'
```
--allow-external-pages
```
END
notes <<-'END'
Allow access to external pages during layout tests.
END
end
entry do
name <<-'END'
```
--allow-failed-policy-fetch-for-test
```
END
notes <<-'END'
If this flag is passed, failed policy fetches will not cause profile initialization to fail. This is useful for tests because it means that tests don't have to mock out the policy infrastructure.
END
end
entry do
name <<-'END'
```
--allow-file-access-from-files
```
END
notes <<-'END'
By default, file:// URIs cannot read other file:// URIs. This is an override for developers who need the old behavior for testing.
END
end
entry do
name <<-'END'
```
--allow-hidden-media-playback
```
END
notes <<-'END'
Allows media playback for hidden WebContents
END
end
entry do
name <<-'END'
```
--allow-http-background-page
```
END
notes <<-'END'
Allows non-https URL for background\_page for hosted apps.
END
end
entry do
name <<-'END'
```
--allow-http-screen-capture
```
END
notes <<-'END'
Allow non-secure origins to use the screen capture API and the desktopCapture extension API.
END
end
entry do
name <<-'END'
```
--allow-insecure-localhost
```
END
notes <<-'END'
Enables TLS/SSL errors on localhost to be ignored (no interstitial, no blocking of requests).
END
end
entry do
name <<-'END'
```
--allow-legacy-extension-manifests
```
END
notes <<-'END'
Allows the browser to load extensions that lack a modern manifest when that would otherwise be forbidden.
END
end
entry do
name <<-'END'
```
--allow-loopback-in-peer-connection
```
END
notes <<-'END'
Allows loopback interface to be added in network list for peer connection.
END
end
entry do
name <<-'END'
```
--allow-nacl-crxfs-api
```
END
notes <<-'END'
**The constant BUILDFLAG(ENABLE\_PLUGINS) must be defined.**
Specifies comma-separated list of extension ids or hosts to grant access to CRX file system APIs.
END
end
entry do
name <<-'END'
```
--allow-nacl-file-handle-api
```
END
notes <<-'END'
**The constant BUILDFLAG(ENABLE\_PLUGINS) must be defined.**
Specifies comma-separated list of extension ids or hosts to grant access to file handle APIs.
END
end
entry do
name <<-'END'
```
--allow-nacl-socket-api
```
END
notes <<-'END'
**The constant BUILDFLAG(ENABLE\_PLUGINS) must be defined.**
Specifies comma-separated list of extension ids or hosts to grant access to TCP/UDP socket APIs.
END
end
entry do
name <<-'END'
```
--allow-no-sandbox-job
```
END
notes <<-'END'
Enables the sandboxed processes to run without a job object assigned to them. This flag is required to allow Chrome to run in RemoteApps or Citrix. This flag can reduce the security of the sandboxed processes and allow them to do certain API calls like shut down Windows or access the clipboard. Also we lose the chance to kill some processes until the outer job that owns them finishes.
END
end
entry do
name <<-'END'
```
--allow-outdated-plugins
```
END
notes <<-'END'
Don't block outdated plugins.
END
end
entry do
name <<-'END'
```
--allow-ra-in-dev-mode
```
END
notes <<-'END'
Allows remote attestation (RA) in dev mode for testing purpose. Usually RA is disabled in dev mode because it will always fail. However, there are cases in testing where we do want to go through the permission flow even in dev mode. This can be enabled by this flag.
END
end
entry do
name <<-'END'
```
--allow-running-insecure-content
```
END
notes <<-'END'
By default, an https page cannot run JavaScript, CSS or plugins from http URLs. This provides an override to get the old insecure behavior.
END
end
entry do
name <<-'END'
```
--allow-sandbox-debugging
```
END
notes <<-'END'
Allows debugging of sandboxed processes (see zygote\_main\_linux.cc).
END
end
entry do
name <<-'END'
```
--allow-silent-push
```
END
notes <<-'END'
Allows Web Push notifications that do not show a notification.
END
end
entry do
name <<-'END'
```
--alsa-check-close-timeout
```
END
notes <<-'END'
Time in ms to wait before closing the PCM handle when no more mixer inputs remain. Assumed to be 0 if `--accept-resource-provider` is present.
END
end
entry do
name <<-'END'
```
--alsa-enable-upsampling
```
END
notes <<-'END'
Flag that enables resampling audio with sample rate below 32kHz up to 48kHz. Should be set to true for internal audio products.
END
end
entry do
name <<-'END'
```
--alsa-fixed-output-sample-rate
```
END
notes <<-'END'
Optional flag to set a fixed sample rate for the alsa device.
END
end
entry do
name <<-'END'
```
--alsa-input-device
```
END
notes <<-'END'
**The constants OS\_FREEBSD, OS\_LINUX and OS\_SOLARIS must be defined.**
The Alsa device to use when opening an audio input stream.
END
end
entry do
name <<-'END'
```
--alsa-output-avail-min
```
END
notes <<-'END'
Minimum number of available frames for scheduling a transfer.
END
end
entry do
name <<-'END'
```
--alsa-output-buffer-size
```
END
notes <<-'END'
Size of the ALSA output buffer in frames. This directly sets the latency of the output device. Latency can be calculated by multiplying the sample rate by the output buffer size.
END
end
entry do
name <<-'END'
```
--alsa-output-device
```
END
notes <<-'END'
**The constants OS\_FREEBSD, OS\_LINUX and OS\_SOLARIS must be defined.**
The Alsa device to use when opening an audio stream.
END
end
entry do
name <<-'END'
```
--alsa-output-period-size
```
END
notes <<-'END'
Size of the ALSA output period in frames. The period of an ALSA output device determines how many frames elapse between hardware interrupts.
END
end
entry do
name <<-'END'
```
--alsa-output-start-threshold
```
END
notes <<-'END'
How many frames need to be in the output buffer before output starts.
END
end
entry do
name <<-'END'
```
--also-emit-success-logs
```
END
notes <<-'END'
Also emit full event trace logs for successful tests.
END
end
entry do
name <<-'END'
```
--always-authorize-plugins
```
END
notes <<-'END'
Prevents Chrome from requiring authorization to run certain widely installed but less commonly used plugins.
END
end
entry do
name <<-'END'
```
--always-on
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--always-use-complex-text
```
END
notes <<-'END'
Always use the complex text path for layout tests.
END
end
entry do
name <<-'END'
```
--alwaystrue
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--android-fonts-path
```
END
notes <<-'END'
Uses the android SkFontManager on linux. The specified directory should include the configuration xml file with the name "fonts.xml". This is used in blimp to emulate android fonts on linux.
END
end
entry do
name <<-'END'
```
--android-stderr-port
```
END
notes <<-'END'
**The constant OS\_ANDROID must be defined.**
Redirect stderr to the given port. Only supported on Android.
END
end
entry do
name <<-'END'
```
--android-stdin-port
```
END
notes <<-'END'
**The constant OS\_ANDROID must be defined.**
Redirect stdin to the given port. Only supported on Android.
END
end
entry do
name <<-'END'
```
--android-stdout-port
```
END
notes <<-'END'
**The constant OS\_ANDROID must be defined.**
Redirect stdout to the given port. Only supported on Android.
END
end
entry do
name <<-'END'
```
--angle
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--app
```
END
notes <<-'END'
Specifies that the associated value should be launched in "application" mode.
END
end
entry do
name <<-'END'
```
--app-auto-launched
```
END
notes <<-'END'
Specifies whether an app launched in kiosk mode was auto launched with zero delay. Used in order to properly restore auto-launched state during session restore flow.
END
end
entry do
name <<-'END'
```
--app-id
```
END
notes <<-'END'
Specifies that the extension-app with the specified id should be launched according to its configuration.
END
end
entry do
name <<-'END'
```
--app-mode-auth-code
```
END
notes <<-'END'
Value of GAIA auth code for `--force-app-mode`.
END
end
entry do
name <<-'END'
```
--app-mode-oauth-token
```
END
notes <<-'END'
Value of OAuth2 refresh token for `--force-app-mode`.
END
end
entry do
name <<-'END'
```
--app-mode-oem-manifest
```
END
notes <<-'END'
Path for app's OEM manifest file.
END
end
entry do
name <<-'END'
```
--app-shell-allow-roaming
```
END
notes <<-'END'
Allow roaming in the cellular network.
END
end
entry do
name <<-'END'
```
--app-shell-host-window-size
```
END
notes <<-'END'
Size for the host window to create (i.e. "800x600").
END
end
entry do
name <<-'END'
```
--app-shell-preferred-network
```
END
notes <<-'END'
SSID of the preferred WiFi network.
END
end
entry do
name <<-'END'
```
--app-shell-refresh-token
```
END
notes <<-'END'
Refresh token for identity API calls for the current user. Used for testing.
END
end
entry do
name <<-'END'
```
--app-shell-user
```
END
notes <<-'END'
User email address of the current user.
END
end
entry do
name <<-'END'
```
--apple
```
END
notes <<-'END'
No description
END
end
entry do
name <<-'END'
```
--apps-gallery-download-url
```
END
notes <<-'END'
The URL that the webstore APIs download extensions from. Note: the URL must contain one '%s' for the extension ID.
END
end
entry do
name <<-'END'
```
--apps-gallery-update-url
```
END
notes <<-'END'
The update url used by gallery/webstore extensions.
END
end
entry do
name <<-'END'
```
--apps-gallery-url
```
END
notes <<-'END'
The URL to use for the gallery link in the app launcher.
END
end
entry do
name <<-'END'
```
--apps-keep-chrome-alive-in-tests
```
END
notes <<-'END'
**The constant OS\_MACOSX must be defined.**
Prevents Chrome from quitting when Chrome Apps are open.
END
end
entry do
name <<-'END'
```
--arc-availability
```
END
notes <<-'END'
Signals ARC support status on this device. This can take one of the following three values.
- none: ARC is not installed on this device. (default)
- installed: ARC is installed on this device, but not officially supported. Users can enable ARC only when Finch experiment is turned on.
- installed-only-kiosk-supported: ARC is installed, but officially supported only in kiosk mode.
- officially-supported: ARC is installed and supported on this device. So users can enable ARC via settings etc.
- officially-supported-with-active-directory: ARC is supported and also allowed to use with Active Directory management.
END
end
entry do
name <<-'END'
```
--arc-available
```
END
notes <<-'END'
DEPRECATED: Please use `--arc-availability=installed`. Signals the availability of the ARC instance on this device.
END
end
entry do
name <<-'END'
```
--artifacts-dir
```
END
notes <<-'END'
Screenshot testing: specifies the directoru where artifacts will be stored.
END
end
entry do
name <<-'END'
```
--ash-adjustable-large-cursor
```
END
notes <<-'END'
Enables adjustable large cursor.
END
end
entry do
name <<-'END'
```
--ash-animate-from-boot-splash-screen
```
END
notes <<-'END'
Enables an animated transition from the boot splash screen (Chrome logo on a white background) to the login screen. Implies |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in conjunction with |kDisableBootAnimation| (since the transition begins at the same time as the white/grayscale login screen animation).
END
end
entry do
name <<-'END'
```
--ash-copy-host-background-at-boot
```
END
notes <<-'END'
Copies the host window's content to the system background layer at startup. Can make boot slightly slower, but also hides an even-longer awkward period where we display a white background if the login wallpaper takes a long time to load.
END
end
entry do
name <<-'END'
```
--ash-debug-shortcuts
```
END
notes <<-'END'
Enable keyboard shortcuts useful for debugging.
END
end
entry do
name <<-'END'
```
--ash-dev-shortcuts
```
END
notes <<-'END'
Enable keyboard shortcuts used by developers only.
END
end
entry do
name <<-'END'
```
--ash-disable-maximize-mode-window-backdrop
```
END
notes <<-'END'
Disables the window backdrops normally used in maximize mode (TouchView).
END
end
entry do
name <<-'END'
```
--ash-disable-screen-orientation-lock
```
END
notes <<-'END'
Disable the support for WebContents to lock the screen orientation.
END
end
entry do
name <<-'END'
```
--ash-disable-touch-exploration-mode
```
END
notes <<-'END'
Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be turned on automatically when spoken feedback is enabled when this flag is set.
END
end
entry do
name <<-'END'
```
--ash-enable-docked-windows
```
END
notes <<-'END'
Enables docking windows to the right or left (not to be confused with snapped windows).
END
end
entry do
name <<-'END'
```
--ash-enable-magnifier-key-scroller
```
END
notes <<-'END'
Enables key bindings to scroll magnified screen.
END
end
entry do
name <<-'END'
```
--ash-enable-mirrored-screen
```
END
notes <<-'END'
Enables mirrored screen.
END
end
entry do
name <<-'END'
```
--ash-enable-palette-on-all-displays
```
END
notes <<-'END'
Enables the palette on every display, instead of only the internal one.
END
end
entry do
name <<-'END'
```
--ash-enable-software-mirroring
```
END
notes <<-'END'
Enables software based mirroring.
END
end
entry do
name <<-'END'
```
--ash-enable-unified-desktop
```
END
notes <<-'END'
**The constant OS\_CHROMEOS must be defined.**
Enables unified desktop mode.
END
end
entry do
name <<-'END'
```
--ash-force-enable-palette
```
END
notes <<-'END'
Enables the palette next to the status area.
END
end
entry do
name <<-'END'
```
--ash-hide-notifications-for-factory
```
END
notes <<-'END'
Hides notifications that are irrelevant to Chrome OS device factory testing, such as battery level updates.
END
end
entry do
name <<-'END'
```
--ash-host-window-bounds
```
END
notes <<-'END'
Sets a window size, optional position, and optional scale factor. "1024x768" creates a window of size 1024x768. "100+200-1024x768" positions the window at 100,200. "1024x768*2" sets the scale factor to 2 for a high DPI display. "800,0+800-800x800" for two displays at 800x800 resolution. "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution.
END
end
entry do
name <<-'END'
```
--ash-shelf-color
```
END
notes <<-'END'
Enables the shelf color to be derived from the wallpaper.
END
end
entry do
name <<-'END'
```
--ash-touch-hud
```
END
notes <<-'END'
Enables the heads-up display for tracking touch points.
END
end
entry do
name <<-'END'