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
|
// Copyright (c) 2012 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 "chrome/common/url_constants.h"
#include <algorithm>
#include "base/macros.h"
#include "build/build_config.h"
#include "chrome/common/features.h"
#include "content/public/common/url_constants.h"
#include "extensions/features/features.h"
#include "printing/features/features.h"
#include "url/url_util.h"
namespace chrome {
#if defined(OS_CHROMEOS)
const char kCrosScheme[] = "cros";
#endif
#if defined(OS_ANDROID)
const char kAndroidAppScheme[] = "android-app";
#endif
// Add Chrome UI URLs as necessary, in alphabetical order.
// Be sure to add the corresponding kChromeUI*Host constant below.
// This is a WebUI page that lists other WebUI pages.
const char kChromeUIAboutURL[] = "chrome://about/";
const char kChromeUIAppsURL[] = "chrome://apps/";
const char kChromeUIAppListStartPageURL[] = "chrome://app-list/";
const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
const char kChromeUICertificateViewerURL[] = "chrome://view-cert/";
const char kChromeUICertificateViewerDialogURL[] = "chrome://view-cert-dialog/";
const char kChromeUIChromeSigninURL[] = "chrome://chrome-signin/";
const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/";
const char kChromeUIComponentsURL[] = "chrome://components/";
const char kChromeUIConflictsURL[] = "chrome://conflicts/";
const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/";
const char kChromeUICrashesURL[] = "chrome://crashes/";
const char kChromeUICreditsURL[] = "chrome://credits/";
const char kChromeUIDevicesURL[] = "chrome://devices/";
const char kChromeUIDevToolsCustomURL[] =
"chrome-devtools://devtools/custom/inspector.html";
const char kChromeUIDevToolsURL[] =
"chrome-devtools://devtools/bundled/inspector.html";
const char kChromeUIDomainReliabilityInternalsURL[] =
"chrome://domain-reliability-internals/";
const char kChromeUIDownloadsURL[] = "chrome://downloads/";
const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/";
const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/";
const char kChromeUIExtensionsURL[] = "chrome://extensions/";
const char kChromeUIFallbackIconURL[] = "chrome://fallback-icon/";
const char kChromeUIFaviconURL[] = "chrome://favicon/";
const char kChromeUIFeedbackURL[] = "chrome://feedback/";
const char kChromeUIFlagsURL[] = "chrome://flags/";
const char kChromeUIFlashURL[] = "chrome://flash/";
const char kChromeUIGCMInternalsURL[] = "chrome://gcm-internals/";
const char kChromeUIHelpFrameURL[] = "chrome://help-frame/";
const char kChromeUIHelpURL[] = "chrome://help/";
const char kChromeUIHistoryURL[] = "chrome://history/";
const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/";
const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/";
const char kChromeUIInspectURL[] = "chrome://inspect/";
const char kChromeUIInstantURL[] = "chrome://instant/";
const char kChromeUIInterstitialURL[] = "chrome://interstitials/";
const char kChromeUIInvalidationsURL[] = "chrome://invalidations/";
const char kChromeUILargeIconURL[] = "chrome://large-icon/";
const char kChromeUIMdPolicyURL[] = "chrome://md-policy/";
const char kChromeUIMdSettingsURL[] = "chrome://md-settings/";
const char kChromeUINaClURL[] = "chrome://nacl/";
const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
const char kChromeUINewProfileURL[] = "chrome://newprofile/";
const char kChromeUINewTabURL[] = "chrome://newtab/";
const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
const char kChromeUIPluginsURL[] = "chrome://plugins/";
const char kChromeUIPolicyURL[] = "chrome://policy/";
const char kChromeUIProfileSigninConfirmationURL[] =
"chrome://profile-signin-confirmation/";
const char kChromeUIMdUserManagerUrl[] = "chrome://md-user-manager/";
const char kChromeUIPrintURL[] = "chrome://print/";
const char kChromeUIQuitURL[] = "chrome://quit/";
const char kChromeUIRestartURL[] = "chrome://restart/";
const char kChromeUISettingsURL[] = "chrome://settings/";
const char kChromeUIContentSettingsURL[] = "chrome://settings/content";
const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
const char kChromeUISigninErrorURL[] = "chrome://signin-error/";
const char kChromeUISuggestionsURL[] = "chrome://suggestions/";
const char kChromeUISupervisedUserPassphrasePageURL[] =
"chrome://managed-user-passphrase/";
const char kChromeUISyncConfirmationURL[] = "chrome://sync-confirmation/";
const char kChromeUITermsURL[] = "chrome://terms/";
const char kChromeUIThemeURL[] = "chrome://theme/";
const char kChromeUIThumbnailURL[] = "chrome://thumb/";
const char kChromeUIThumbnailListURL[] = "chrome://thumbnails/";
const char kChromeUIUberFrameURL[] = "chrome://uber-frame/";
const char kChromeUIUserActionsURL[] = "chrome://user-actions/";
const char kChromeUIVersionURL[] = "chrome://version/";
const char kChromeUIWelcomeURL[] = "chrome://welcome/";
const char kChromeUIWelcomeWin10URL[] = "chrome://welcome-win10/";
#if BUILDFLAG(ANDROID_JAVA_UI)
const char kChromeUIContextualSearchPromoURL[] =
"chrome://contextual-search-promo";
const char kChromeUINativeScheme[] = "chrome-native";
const char kChromeUINativeNewTabURL[] = "chrome-native://newtab/";
const char kChromeUINativeBookmarksURL[] = "chrome-native://bookmarks/";
const char kChromeUINativePhysicalWebURL[] = "chrome-native://physical-web/";
const char kChromeUINativeRecentTabsURL[] = "chrome-native://recent-tabs/";
#endif
#if defined(OS_CHROMEOS)
const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
const char kChromeUICertificateManagerDialogURL[] =
"chrome://certificate-manager/";
const char kChromeUIChooseMobileNetworkURL[] =
"chrome://choose-mobile-network/";
const char kChromeUIDeviceEmulatorURL[] = "chrome://device-emulator/";
const char kChromeUIFirstRunURL[] = "chrome://first-run/";
const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
const char kChromeUIOobeURL[] = "chrome://oobe/";
const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
const char kChromeUISetTimeURL[] = "chrome://set-time/";
const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
const char kChromeUISlowURL[] = "chrome://slow/";
const char kChromeUISystemInfoURL[] = "chrome://system/";
const char kChromeUITermsOemURL[] = "chrome://terms/oem";
const char kChromeUIUserImageURL[] = "chrome://userimage/";
// TODO(xdai): Change it to chrome://settings/cupsPrinters after M56 since MD
// settings is going to launch in Chrome OS in M57.
const char kChromeUIMdCupsSettingsURL[] = "chrome://md-settings/cupsPrinters";
#endif // defined(OS_CHROMEOS)
#if defined(OS_WIN)
const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
#endif
#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
const char kChromeUITabModalConfirmDialogURL[] =
"chrome://tab-modal-confirm-dialog/";
#endif
#if defined(ENABLE_WEBRTC)
const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
#endif
#if defined(ENABLE_MEDIA_ROUTER)
const char kChromeUIMediaRouterURL[] = "chrome://media-router/";
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
const char kChromeUICastURL[] = "chrome://cast/";
#endif
#endif
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
const char kChromeUIDiscardsHost[] = "discards";
const char kChromeUIDiscardsURL[] = "chrome://discards/";
#endif
// Add Chrome UI hosts here, in alphabetical order.
// Add hosts to kChromePaths in browser_about_handler.cc to be listed by
// chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
const char kChromeUIAboutHost[] = "about";
const char kChromeUIBlankHost[] = "blank";
const char kChromeUIAppLauncherPageHost[] = "apps";
const char kChromeUIAppListStartPageHost[] = "app-list";
const char kChromeUIBluetoothInternalsHost[] = "bluetooth-internals";
const char kChromeUIBookmarksHost[] = "bookmarks";
const char kChromeUICacheHost[] = "cache";
const char kChromeUICertificateViewerHost[] = "view-cert";
const char kChromeUICertificateViewerDialogHost[] = "view-cert-dialog";
const char kChromeUIChromeSigninHost[] = "chrome-signin";
const char kChromeUIChromeURLsHost[] = "chrome-urls";
const char kChromeUIConflictsHost[] = "conflicts";
const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
const char kChromeUICrashesHost[] = "crashes";
const char kChromeUICrashHost[] = "crash";
const char kChromeUICreditsHost[] = "credits";
const char kChromeUIDefaultHost[] = "version";
const char kChromeUIDelayedHangUIHost[] = "delayeduithreadhang";
const char kChromeUIDeviceLogHost[] = "device-log";
const char kChromeUIDevicesHost[] = "devices";
const char kChromeUIDevToolsHost[] = "devtools";
const char kChromeUIDevToolsBundledPath[] = "bundled";
const char kChromeUIDevToolsCustomPath[] = "custom";
const char kChromeUIDevToolsRemotePath[] = "remote";
const char kChromeUIDNSHost[] = "dns";
const char kChromeUIDomainReliabilityInternalsHost[] =
"domain-reliability-internals";
const char kChromeUIDownloadsHost[] = "downloads";
const char kChromeUIDriveInternalsHost[] = "drive-internals";
const char kChromeUIExtensionIconHost[] = "extension-icon";
const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
const char kChromeUIExtensionsHost[] = "extensions";
const char kChromeUIFallbackIconHost[] = "fallback-icon";
const char kChromeUIFaviconHost[] = "favicon";
const char kChromeUIFeedbackHost[] = "feedback";
const char kChromeUIFlagsHost[] = "flags";
const char kChromeUIFlashHost[] = "flash";
const char kChromeUIGCMInternalsHost[] = "gcm-internals";
const char kChromeUIHangHost[] = "hang";
const char kChromeUIHangUIHost[] = "uithreadhang";
const char kChromeUIHelpFrameHost[] = "help-frame";
const char kChromeUIHelpHost[] = "help";
const char kChromeUIHistoryHost[] = "history";
const char kChromeUIHistoryFrameHost[] = "history-frame";
const char kChromeUIIdentityInternalsHost[] = "identity-internals";
const char kChromeUIInspectHost[] = "inspect";
const char kChromeUIInstantHost[] = "instant";
const char kChromeUIInterstitialHost[] = "interstitials";
const char kChromeUIInvalidationsHost[] = "invalidations";
const char kChromeUIKillHost[] = "kill";
const char kChromeUILargeIconHost[] = "large-icon";
const char kChromeUILocalStateHost[] = "local-state";
const char kChromeUIMdPolicyHost[] = "md-policy";
const char kChromeUIMdSettingsHost[] = "md-settings";
const char kChromeUINaClHost[] = "nacl";
const char kChromeUINetExportHost[] = "net-export";
const char kChromeUINetInternalsHost[] = "net-internals";
const char kChromeUINewTabHost[] = "newtab";
const char kChromeUIOmniboxHost[] = "omnibox";
const char kChromeUIPasswordManagerInternalsHost[] =
"password-manager-internals";
const char kChromeUIPluginsHost[] = "plugins";
const char kChromeUIComponentsHost[] = "components";
const char kChromeUIPolicyHost[] = "policy";
const char kChromeUIProfileSigninConfirmationHost[] =
"profile-signin-confirmation";
const char kChromeUIMdUserManagerHost[] = "md-user-manager";
const char kChromeUIPredictorsHost[] = "predictors";
const char kChromeUIProfilerHost[] = "profiler";
const char kChromeUIQuotaInternalsHost[] = "quota-internals";
const char kChromeUIQuitHost[] = "quit";
const char kChromeUIRestartHost[] = "restart";
const char kChromeUISettingsHost[] = "settings";
const char kChromeUISettingsFrameHost[] = "settings-frame";
const char kChromeUIShorthangHost[] = "shorthang";
const char kChromeUISigninErrorHost[] = "signin-error";
const char kChromeUISignInInternalsHost[] = "signin-internals";
const char kChromeUISiteEngagementHost[] = "site-engagement";
const char kChromeUISuggestionsHost[] = "suggestions";
const char kChromeUISupervisedUserInternalsHost[] = "supervised-user-internals";
const char kChromeUISupervisedUserPassphrasePageHost[] =
"managed-user-passphrase";
const char kChromeUISyncConfirmationHost[] = "sync-confirmation";
const char kChromeUISyncHost[] = "sync";
const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
const char kChromeUISyncInternalsHost[] = "sync-internals";
const char kChromeUISyncResourcesHost[] = "syncresources";
const char kChromeUISystemInfoHost[] = "system";
const char kChromeUITaskSchedulerInternalsHost[] = "taskscheduler-internals";
const char kChromeUITermsHost[] = "terms";
const char kChromeUIThemeHost[] = "theme";
const char kChromeUIThumbnailHost[] = "thumb";
const char kChromeUIThumbnailHost2[] = "thumb2";
const char kChromeUIThumbnailListHost[] = "thumbnails";
const char kChromeUITouchIconHost[] = "touch-icon";
const char kChromeUITranslateInternalsHost[] = "translate-internals";
const char kChromeUIUberFrameHost[] = "uber-frame";
const char kChromeUIUberHost[] = "chrome";
const char kChromeUIUsbInternalsHost[] = "usb-internals";
const char kChromeUIUserActionsHost[] = "user-actions";
const char kChromeUIVersionHost[] = "version";
const char kChromeUIWelcomeHost[] = "welcome";
const char kChromeUIWelcomeWin10Host[] = "welcome-win10";
const char kChromeUIWorkersHost[] = "workers";
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
const char kChromeUIPrintHost[] = "print";
#endif // ENABLE_PRINT_PREVIEW
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
const char kChromeUISandboxHost[] = "sandbox";
#endif
#if defined(OS_ANDROID)
const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo";
const char kChromeUIOfflineInternalsHost[] = "offline-internals";
const char kChromeUIPhysicalWebHost[] = "physical-web";
const char kChromeUIPopularSitesInternalsHost[] = "popular-sites-internals";
const char kChromeUISnippetsInternalsHost[] = "snippets-internals";
#endif
#if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
const char kChromeUIVrShellUIHost[] = "vr-shell-ui";
#endif
#if defined(OS_CHROMEOS)
const char kChromeUIActivationMessageHost[] = "activationmessage";
const char kChromeUIAppLaunchHost[] = "app-launch";
const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
const char kChromeUICertificateManagerHost[] = "certificate-manager";
const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
const char kChromeUICryptohomeHost[] = "cryptohome";
const char kChromeUIDeviceEmulatorHost[] = "device-emulator";
const char kChromeUIFirstRunHost[] = "first-run";
const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
const char kChromeUILoginContainerHost[] = "login-container";
const char kChromeUILoginHost[] = "login";
const char kChromeUIMobileSetupHost[] = "mobilesetup";
const char kChromeUINetworkHost[] = "network";
const char kChromeUIOobeHost[] = "oobe";
const char kChromeUIOSCreditsHost[] = "os-credits";
const char kChromeUIPowerHost[] = "power";
const char kChromeUIProxySettingsHost[] = "proxy-settings";
const char kChromeUIRotateHost[] = "rotate";
const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
const char kChromeUISetTimeHost[] = "set-time";
const char kChromeUISimUnlockHost[] = "sim-unlock";
const char kChromeUISlowHost[] = "slow";
const char kChromeUISlowTraceHost[] = "slow_trace";
const char kChromeUIUserImageHost[] = "userimage";
const char kChromeUIVoiceSearchHost[] = "voicesearch";
const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
const char kOemEulaURLPath[] = "oem";
const char kOnlineEulaURLPath[] =
"https://www.google.com/intl/%s/chrome/eula_text.html";
const char kChromeOSCreditsPath[] =
"/opt/google/chrome/resources/about_os_credits.html";
const char kChromeOSAssetHost[] = "chromeos-asset";
const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/";
#endif // defined(OS_CHROMEOS)
#if defined(OS_WIN)
const char kChromeUIMetroFlowHost[] = "make-metro";
#endif
#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
#endif
#if defined(ENABLE_WEBRTC)
const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
#endif
#if defined(ENABLE_MEDIA_ROUTER)
const char kChromeUIMediaRouterHost[] = "media-router";
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
const char kChromeUICastHost[] = "cast";
#endif
#endif
// Option sub pages.
// Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
// listed by the built-in AutocompleteProvider.
const char kAutofillSubPage[] = "autofill";
const char kClearBrowserDataSubPage[] = "clearBrowserData";
const char kContentSettingsSubPage[] = "content";
const char kCreateProfileSubPage[] = "createProfile";
const char kDeprecatedOptionsContentSettingsExceptionsSubPage[] =
"contentExceptions";
const char kExtensionsSubPage[] = "extensions";
const char kHandlerSettingsSubPage[] = "handlers";
const char kImportDataSubPage[] = "importData";
const char kLanguageOptionsSubPage[] = "languages";
const char kManageProfileSubPage[] = "manageProfile";
const char kPasswordManagerSubPage[] = "passwords";
const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
const char kSearchEnginesSubPage[] = "searchEngines";
const char kSignOutSubPage[] = "signOut";
const char kSyncSetupSubPage[] = "syncSetup";
const char kTriggeredResetProfileSettingsSubPage[] =
"triggeredResetProfileSettings";
#if defined(OS_CHROMEOS)
const char kAccessibilitySubPage[] = "accessibility";
const char kBluetoothSubPage[] = "bluetooth";
const char kDateTimeSubPage[] = "dateTime";
const char kDeprecatedOptionsSearchSubPage[] = "search";
const char kInternetOptionsSubPage[] = "internet";
const char kPowerOptionsSubPage[] = "power-overlay";
#endif
// Extension sub pages.
const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
const char kExtensionResourceInvalidRequestURL[] =
"chrome-extension-resource://invalid/";
const char kSyncGoogleDashboardURL[] =
"https://www.google.com/settings/chrome/sync/";
const char kGoogleAccountActivityControlsURL[] =
"https://myaccount.google.com/activitycontrols/search";
const char kPasswordManagerLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_password";
#else
"https://support.google.com/chrome/?p=settings_password";
#endif
const char kUpgradeHelpCenterBaseURL[] =
"https://support.google.com/installer/?product="
"{8A69D345-D564-463c-AFF1-A69D9E530F96}&error=";
const char kSmartLockHelpPage[] =
"https://support.google.com/accounts/answer/6197437";
const char kExtensionControlledSettingLearnMoreURL[] =
"https://support.google.com/chrome/?p=ui_settings_api_extension";
const char kChromeHelpViaKeyboardURL[] =
#if defined(OS_CHROMEOS)
#if defined(OFFICIAL_BUILD)
"chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
#else
"https://support.google.com/chromebook/?p=help&ctx=keyboard";
#endif // defined(OFFICIAL_BUILD
#else
"https://support.google.com/chrome/?p=help&ctx=keyboard";
#endif // defined(OS_CHROMEOS)
const char kChromeHelpViaMenuURL[] =
#if defined(OS_CHROMEOS)
#if defined(OFFICIAL_BUILD)
"chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
#else
"https://support.google.com/chromebook/?p=help&ctx=menu";
#endif // defined(OFFICIAL_BUILD
#else
"https://support.google.com/chrome/?p=help&ctx=menu";
#endif // defined(OS_CHROMEOS)
const char kChromeHelpViaWebUIURL[] =
#if defined(OS_CHROMEOS)
#if defined(OFFICIAL_BUILD)
"chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
#else
"https://support.google.com/chromebook/?p=help&ctx=settings";
#endif // defined(OFFICIAL_BUILD
#else
"https://support.google.com/chrome/?p=help&ctx=settings";
#endif // defined(OS_CHROMEOS)
#if defined(OS_CHROMEOS)
const char kChromeAccessibilityHelpURL[] =
"https://support.google.com/chromebook/topic/6323347";
const char kChromeAccessibilitySettingsURL[] =
"/chromevox/background/options.html";
const char kChromePaletteHelpURL[] =
"https://support.google.com/chromebook?p=stylus_help";
#endif // defined(OS_CHROMEOS)
#if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN)
const char kChromeSyncLearnMoreURL[] =
"https://support.google.com/chrome/answer/165139";
const char kChromeSyncMergeTroubleshootingURL[] =
"https://support.google.com/chrome/answer/1181420#merge";
#endif // BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN)
#if defined(OS_MACOSX)
const char kChromeEnterpriseSignInLearnMoreURL[] =
"https://support.google.com/chromebook/answer/1331549";
#endif
const char kResetProfileSettingsLearnMoreURL[] =
"https://support.google.com/chrome/?p=ui_reset_settings";
const char kAutomaticSettingsResetLearnMoreURL[] =
"https://support.google.com/chrome/?p=ui_automatic_settings_reset";
const char kLegacySupervisedUserManagementURL[] =
"https://www.chrome.com/manage";
const char kLegacySupervisedUserManagementDisplayURL[] =
"www.chrome.com/manage";
const char kSettingsSearchHelpURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_search_help";
#else
"https://support.google.com/chrome/?p=settings_search_help";
#endif
const char kOmniboxLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_omnibox";
#else
"https://support.google.com/chrome/?p=settings_omnibox";
#endif
const char kPageInfoHelpCenterURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=ui_security_indicator";
#else
"https://support.google.com/chrome/?p=ui_security_indicator";
#endif
const char kCrashReasonURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=e_awsnap";
#else
"https://support.google.com/chrome/?p=e_awsnap";
#endif
const char kCrashReasonFeedbackDisplayedURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=e_awsnap_rl";
#else
"https://support.google.com/chrome/?p=e_awsnap_rl";
#endif
const char kPrivacyLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_privacy";
#else
"https://support.google.com/chrome/?p=settings_privacy";
#endif
const char kDoNotTrackLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_do_not_track";
#else
"https://support.google.com/chrome/?p=settings_do_not_track";
#endif
#if defined(OS_CHROMEOS)
const char kAttestationForContentProtectionLearnMoreURL[] =
"https://support.google.com/chromebook/?p=verified_access";
#endif
#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
const char kEnhancedPlaybackNotificationLearnMoreURL[] =
#endif
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=enhanced_playback";
#elif defined(OS_ANDROID)
// Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
"https://support.google.com/chrome/?p=mobile_protected_content";
#endif
const char kChromiumProjectURL[] = "https://www.chromium.org/";
const char kLearnMoreReportingURL[] =
"https://support.google.com/chrome/?p=ui_usagestat";
#if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
const char kOutdatedPluginLearnMoreURL[] =
"https://support.google.com/chrome/?p=ib_outdated_plugin";
#endif
const char kBlockedPluginLearnMoreURL[] =
"https://support.google.com/chrome/?p=ib_blocked_plugin";
const char kHotwordLearnMoreURL[] =
"https://support.google.com/chrome/?p=ui_hotword_search";
const char kManageAudioHistoryURL[] =
"https://history.google.com/history/audio";
const char kLearnMoreRegisterProtocolHandlerURL[] =
"https://support.google.com/chrome/?p=ib_protocol_handler";
const char kSyncLearnMoreURL[] =
"https://support.google.com/chrome/?p=settings_sign_in";
const char kDownloadScanningLearnMoreURL[] =
"https://support.google.com/chrome/?p=ib_download_blocked";
const char kDownloadInterruptedLearnMoreURL[] =
"https://support.google.com/chrome/?p=ui_download_errors";
const char kSyncEverythingLearnMoreURL[] =
"https://support.google.com/chrome/?p=settings_sync_all";
const char kCloudPrintLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_cloud_print";
#else
"https://support.google.com/chrome/?p=settings_cloud_print";
#endif
const char kCloudPrintNoDestinationsLearnMoreURL[] =
"https://www.google.com/cloudprint/learn/";
const char kAppLauncherHelpURL[] =
"https://support.google.com/chrome_webstore/?p=cws_app_launcher";
const char kSyncEncryptionHelpURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_encryption";
#else
"https://support.google.com/chrome/?p=settings_encryption";
#endif
const char kSyncErrorsHelpURL[] =
"https://support.google.com/chrome/?p=settings_sync_error";
#if defined(OS_CHROMEOS)
const char kNaturalScrollHelpURL[] =
"https://support.google.com/chromebook/?p=simple_scrolling";
#endif
#if defined(OS_CHROMEOS)
const char kLearnMoreEnterpriseURL[] =
"https://support.google.com/chromebook/?p=managed";
#endif
const char kRemoveNonCWSExtensionURL[] =
"https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
#if defined(OS_WIN)
const char kNotificationsHelpURL[] =
"https://support.google.com/chrome/?p=ui_notifications";
#endif
const char kNotificationWelcomeLearnMoreURL[] =
"https://support.google.com/chrome/?p=ib_google_now_welcome";
// Add hosts here to be included in chrome://chrome-urls (about:about).
// These hosts will also be suggested by BuiltinProvider.
const char* const kChromeHostURLs[] = {
kChromeUIBluetoothInternalsHost,
kChromeUICacheHost,
kChromeUIChromeURLsHost,
kChromeUIComponentsHost,
kChromeUICrashesHost,
kChromeUICreditsHost,
kChromeUIDNSHost,
#if defined(OS_CHROMEOS) && !defined(OFFICIAL_BUILD)
kChromeUIDeviceEmulatorHost,
#endif
kChromeUIDeviceLogHost,
kChromeUIFlagsHost,
kChromeUIGCMInternalsHost,
kChromeUIHistoryHost,
kChromeUIInvalidationsHost,
kChromeUILocalStateHost,
kChromeUINetExportHost,
kChromeUINetInternalsHost,
kChromeUINewTabHost,
kChromeUIOmniboxHost,
kChromeUIPasswordManagerInternalsHost,
kChromeUIPolicyHost,
kChromeUIPredictorsHost,
kChromeUIProfilerHost,
kChromeUISignInInternalsHost,
kChromeUISuggestionsHost,
kChromeUISupervisedUserInternalsHost,
kChromeUISyncInternalsHost,
kChromeUITaskSchedulerInternalsHost,
kChromeUITermsHost,
kChromeUIThumbnailListHost,
kChromeUITranslateInternalsHost,
kChromeUIUsbInternalsHost,
kChromeUIUserActionsHost,
kChromeUIVersionHost,
content::kChromeUIAccessibilityHost,
content::kChromeUIAppCacheInternalsHost,
content::kChromeUIBlobInternalsHost,
content::kChromeUIDinoHost,
content::kChromeUIGpuHost,
content::kChromeUIHistogramHost,
content::kChromeUIIndexedDBInternalsHost,
content::kChromeUIMediaInternalsHost,
content::kChromeUINetworkErrorHost,
content::kChromeUINetworkErrorsListingHost,
content::kChromeUINetworkViewCacheHost,
content::kChromeUIServiceWorkerInternalsHost,
content::kChromeUITracingHost,
content::kChromeUIWebRTCInternalsHost,
#if !defined(OS_ANDROID)
#if !defined(OS_CHROMEOS)
kChromeUIAppLauncherPageHost,
#endif
kChromeUIBookmarksHost,
kChromeUIDownloadsHost,
kChromeUIFlashHost,
kChromeUIHelpHost,
kChromeUIInspectHost,
kChromeUIPluginsHost,
kChromeUIQuotaInternalsHost,
kChromeUISettingsHost,
kChromeUISystemInfoHost,
kChromeUIUberHost,
#endif
#if defined(OS_ANDROID)
kChromeUINetExportHost,
kChromeUIOfflineInternalsHost,
kChromeUIPopularSitesInternalsHost,
kChromeUISnippetsInternalsHost,
#endif
#if defined(OS_CHROMEOS)
kChromeUICertificateManagerHost,
kChromeUIChooseMobileNetworkHost,
kChromeUICryptohomeHost,
kChromeUIDriveInternalsHost,
kChromeUIFirstRunHost,
kChromeUIKeyboardOverlayHost,
kChromeUILoginHost,
kChromeUINetworkHost,
kChromeUIOobeHost,
kChromeUIOSCreditsHost,
kChromeUIPowerHost,
kChromeUIProxySettingsHost,
kChromeUIVoiceSearchHost,
#endif
#if defined(OS_WIN) || defined(OS_CHROMEOS)
kChromeUIDiscardsHost,
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
kChromeUILinuxProxyConfigHost,
kChromeUISandboxHost,
#endif
#if defined(OS_WIN)
kChromeUIConflictsHost,
#endif
#if !defined(DISABLE_NACL)
kChromeUINaClHost,
#endif
#if BUILDFLAG(ENABLE_EXTENSIONS)
kChromeUIExtensionsHost,
#endif
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
kChromeUIPrintHost,
#endif
#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
kChromeUIDevicesHost,
#endif
#if defined(ENABLE_WEBRTC)
kChromeUIWebRtcLogsHost,
#endif
};
const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
const char* const kChromeDebugURLs[] = {content::kChromeUIBadCastCrashURL,
content::kChromeUICrashURL,
content::kChromeUIDumpURL,
content::kChromeUIKillURL,
content::kChromeUIHangURL,
content::kChromeUIShorthangURL,
content::kChromeUIGpuCleanURL,
content::kChromeUIGpuCrashURL,
content::kChromeUIGpuHangURL,
content::kChromeUIMemoryExhaustURL,
content::kChromeUIPpapiFlashCrashURL,
content::kChromeUIPpapiFlashHangURL,
chrome::kChromeUIQuitURL,
chrome::kChromeUIRestartURL};
const int kNumberOfChromeDebugURLs =
static_cast<int>(arraysize(kChromeDebugURLs));
const char kChromeNativeScheme[] = "chrome-native";
const char kChromeSearchScheme[] = "chrome-search";
const char kChromeSearchLocalNtpHost[] = "local-ntp";
const char kChromeSearchLocalNtpUrl[] =
"chrome-search://local-ntp/local-ntp.html";
const char kChromeSearchRemoteNtpHost[] = "remote-ntp";
const char kChromeSearchMostVisitedHost[] = "most-visited";
const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
const char kEasyUnlockLearnMoreUrl[] =
"https://support.google.com/chromebook/?p=smart_lock";
// Google SafeSearch query parameters.
const char kSafeSearchSafeParameter[] = "safe=active";
const char kSafeSearchSsuiParameter[] = "ssui=on";
const char kMediaAccessLearnMoreUrl[] =
"https://support.google.com/chrome/?p=ib_access_cam_mic";
const char kLanguageSettingsLearnMoreUrl[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/answer/1059490";
#else
"https://support.google.com/chrome/topic/1678461";
#endif
#if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
const char kLinuxWheezyPreciseDeprecationURL[] =
"https://support.google.com/chrome/answer/95346";
#endif
#if defined(OS_MACOSX)
// TODO(mark): Change to a Help Center URL when one is available.
// https://crbug.com/555044
const char kMac10_678_DeprecationURL[] =
"https://chrome.blogspot.com/2015/11/updates-to-chrome-platform-support.html";
#endif
#if defined(OS_WIN)
const char kWindowsXPVistaDeprecationURL[] =
"https://chrome.blogspot.com/2015/11/updates-to-chrome-platform-support.html";
#endif
const char kChooserBluetoothOverviewURL[] =
"https://support.google.com/chrome?p=bluetooth";
const char kBluetoothAdapterOffHelpURL[] =
#if defined(OS_CHROMEOS)
"chrome://settings/search#Bluetooth";
#else
"https://support.google.com/chrome?p=bluetooth";
#endif
const char kChooserUsbOverviewURL[] =
"https://support.google.com/chrome?p=webusb";
#if defined(OS_CHROMEOS)
const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/";
#endif
} // namespace chrome
|