OLD | NEW |
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 "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 // disable that check. This switch is used during automated testing. | 329 // disable that check. This switch is used during automated testing. |
330 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 330 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
331 | 331 |
332 // Prevents the URLs of BackgroundContents from being remembered and | 332 // Prevents the URLs of BackgroundContents from being remembered and |
333 // re-launched when the browser restarts. | 333 // re-launched when the browser restarts. |
334 const char kDisableRestoreBackgroundContents[] = | 334 const char kDisableRestoreBackgroundContents[] = |
335 "disable-restore-background-contents"; | 335 "disable-restore-background-contents"; |
336 | 336 |
337 // Disables restoring session state (cookies, session storage, etc.) when | 337 // Disables restoring session state (cookies, session storage, etc.) when |
338 // restoring the browsing session. | 338 // restoring the browsing session. |
339 const char kDisableRestoreSessionState[] = "disable-restore-session-state"; | 339 const char kDisableRestoreSessionState[] = "disable-restore-session-state"; |
340 | 340 |
341 // Disables the ShortcutsProvider for autocomplete results. | 341 // Disables the ShortcutsProvider for autocomplete results. |
342 const char kDisableShortcutsProvider[] = "disable-shortcuts-provider"; | 342 const char kDisableShortcutsProvider[] = "disable-shortcuts-provider"; |
343 | 343 |
344 // Disables SSL v3 (usually for testing purposes). | 344 // Disables SSL v3 (usually for testing purposes). |
345 const char kDisableSSL3[] = "disable-ssl3"; | 345 const char kDisableSSL3[] = "disable-ssl3"; |
346 | 346 |
347 // Disables syncing browser data to a Google Account. | 347 // Disables syncing browser data to a Google Account. |
348 const char kDisableSync[] = "disable-sync"; | 348 const char kDisableSync[] = "disable-sync"; |
349 | 349 |
| 350 // Disables syncing of app settings. |
| 351 const char kDisableSyncAppSettings[] = "disable-sync-app-settings"; |
| 352 |
350 // Disables syncing of apps. | 353 // Disables syncing of apps. |
351 const char kDisableSyncApps[] = "disable-sync-apps"; | 354 const char kDisableSyncApps[] = "disable-sync-apps"; |
352 | 355 |
353 // Disable syncing app notifications. | 356 // Disable syncing app notifications. |
354 const char kDisableSyncAppNotifications[] = "disable-sync-app-notifications"; | 357 const char kDisableSyncAppNotifications[] = "disable-sync-app-notifications"; |
355 | 358 |
356 // Disables syncing of autofill. | 359 // Disables syncing of autofill. |
357 const char kDisableSyncAutofill[] = "disable-sync-autofill"; | 360 const char kDisableSyncAutofill[] = "disable-sync-autofill"; |
358 | 361 |
359 // Disables syncing of autofill Profile. | 362 // Disables syncing of autofill Profile. |
360 const char kDisableSyncAutofillProfile[] = "disable-sync-autofill-profile"; | 363 const char kDisableSyncAutofillProfile[] = "disable-sync-autofill-profile"; |
361 | 364 |
362 // Disables syncing of bookmarks. | 365 // Disables syncing of bookmarks. |
363 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; | 366 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; |
364 | 367 |
365 // Disables sync encryption options. | 368 // Disables sync encryption options. |
366 const char kDisableSyncEncryption[] = "disable-sync-encryption"; | 369 const char kDisableSyncEncryption[] = "disable-sync-encryption"; |
| 370 |
| 371 // Disables syncing extension settings. |
| 372 const char kDisableSyncExtensionSettings[] = "disable-sync-extension-settings"; |
367 | 373 |
368 // Disables syncing of extensions. | 374 // Disables syncing of extensions. |
369 const char kDisableSyncExtensions[] = "disable-sync-extensions"; | 375 const char kDisableSyncExtensions[] = "disable-sync-extensions"; |
370 | 376 |
371 // Disables syncing browser passwords. | 377 // Disables syncing browser passwords. |
372 const char kDisableSyncPasswords[] = "disable-sync-passwords"; | 378 const char kDisableSyncPasswords[] = "disable-sync-passwords"; |
373 | 379 |
374 // Disables syncing of preferences. | 380 // Disables syncing of preferences. |
375 const char kDisableSyncPreferences[] = "disable-sync-preferences"; | 381 const char kDisableSyncPreferences[] = "disable-sync-preferences"; |
376 | 382 |
377 // Disable syncing custom search engines. | 383 // Disable syncing custom search engines. |
378 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; | 384 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; |
379 | 385 |
380 // Disables syncing of themes. | 386 // Disables syncing of themes. |
381 const char kDisableSyncThemes[] = "disable-sync-themes"; | 387 const char kDisableSyncThemes[] = "disable-sync-themes"; |
382 | 388 |
383 // Disables syncing browser typed urls. | 389 // Disables syncing browser typed urls. |
384 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; | 390 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; |
385 | 391 |
386 // TabCloseableStateWatcher disallows closing of tabs and browsers under | 392 // TabCloseableStateWatcher disallows closing of tabs and browsers under |
387 // certain situations on ChromeOS. Some tests expect tabs or browsers to close, | 393 // certain situations on ChromeOS. Some tests expect tabs or browsers to close, |
388 // so we need a switch to disable the watcher. | 394 // so we need a switch to disable the watcher. |
389 const char kDisableTabCloseableStateWatcher[] = | 395 const char kDisableTabCloseableStateWatcher[] = |
390 "disable-tab-closeable-state-watcher"; | 396 "disable-tab-closeable-state-watcher"; |
391 | 397 |
392 // Disables TLS v1.0 (usually for testing purposes). | 398 // Disables TLS v1.0 (usually for testing purposes). |
393 const char kDisableTLS1[] = "disable-tls1"; | 399 const char kDisableTLS1[] = "disable-tls1"; |
394 | 400 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // Some tracking will still take place at startup, but it will be turned off | 560 // Some tracking will still take place at startup, but it will be turned off |
555 // during chrome_browser_main. | 561 // during chrome_browser_main. |
556 const char kEnableProfiling[] = "enable-profiling"; | 562 const char kEnableProfiling[] = "enable-profiling"; |
557 | 563 |
558 // Controls the support for SDCH filtering (dictionary based expansion of | 564 // Controls the support for SDCH filtering (dictionary based expansion of |
559 // content). By default SDCH filtering is enabled. To disable SDCH filtering, | 565 // content). By default SDCH filtering is enabled. To disable SDCH filtering, |
560 // use "--enable-sdch=0" as command line argument. SDCH is currently only | 566 // use "--enable-sdch=0" as command line argument. SDCH is currently only |
561 // supported server-side for searches on google.com. | 567 // supported server-side for searches on google.com. |
562 const char kEnableSdch[] = "enable-sdch"; | 568 const char kEnableSdch[] = "enable-sdch"; |
563 | 569 |
564 // Enables syncing extension settings. | |
565 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; | |
566 | |
567 // Enables syncing browser sessions. | 570 // Enables syncing browser sessions. |
568 const char kEnableSyncTabs[] = "enable-sync-tabs"; | 571 const char kEnableSyncTabs[] = "enable-sync-tabs"; |
569 | 572 |
570 // Enables syncing browser sessions for other synced clients. | 573 // Enables syncing browser sessions for other synced clients. |
571 const char kEnableSyncTabsForOtherClients[] = | 574 const char kEnableSyncTabsForOtherClients[] = |
572 "enable-sync-tabs-for-other-clients"; | 575 "enable-sync-tabs-for-other-clients"; |
573 | 576 |
574 // Enables context menu for selecting groups of tabs. | 577 // Enables context menu for selecting groups of tabs. |
575 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; | 578 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; |
576 | 579 |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 | 1337 |
1335 // ----------------------------------------------------------------------------- | 1338 // ----------------------------------------------------------------------------- |
1336 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1339 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1337 // | 1340 // |
1338 // You were going to just dump your switches here, weren't you? Instead, please | 1341 // You were going to just dump your switches here, weren't you? Instead, please |
1339 // put them in alphabetical order above, or in order inside the appropriate | 1342 // put them in alphabetical order above, or in order inside the appropriate |
1340 // ifdef at the bottom. The order should match the header. | 1343 // ifdef at the bottom. The order should match the header. |
1341 // ----------------------------------------------------------------------------- | 1344 // ----------------------------------------------------------------------------- |
1342 | 1345 |
1343 } // namespace switches | 1346 } // namespace switches |
OLD | NEW |