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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 391 |
392 // Disables syncing of bookmarks. | 392 // Disables syncing of bookmarks. |
393 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; | 393 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; |
394 | 394 |
395 // Disables syncing extension settings. | 395 // Disables syncing extension settings. |
396 const char kDisableSyncExtensionSettings[] = "disable-sync-extension-settings"; | 396 const char kDisableSyncExtensionSettings[] = "disable-sync-extension-settings"; |
397 | 397 |
398 // Disables syncing of extensions. | 398 // Disables syncing of extensions. |
399 const char kDisableSyncExtensions[] = "disable-sync-extensions"; | 399 const char kDisableSyncExtensions[] = "disable-sync-extensions"; |
400 | 400 |
| 401 // Disables syncing of history delete directives. |
| 402 const char kDisableSyncHistoryDeleteDirectives[] = |
| 403 "disable-sync-history-delete-directives"; |
| 404 |
401 // Disables syncing browser passwords. | 405 // Disables syncing browser passwords. |
402 const char kDisableSyncPasswords[] = "disable-sync-passwords"; | 406 const char kDisableSyncPasswords[] = "disable-sync-passwords"; |
403 | 407 |
404 // Disables syncing of preferences. | 408 // Disables syncing of preferences. |
405 const char kDisableSyncPreferences[] = "disable-sync-preferences"; | 409 const char kDisableSyncPreferences[] = "disable-sync-preferences"; |
406 | 410 |
407 // Disable syncing custom search engines. | 411 // Disable syncing custom search engines. |
408 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; | 412 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; |
409 | 413 |
| 414 // Disables syncing browser sessions. Will override kEnableSyncTabs. |
| 415 const char kDisableSyncTabs[] = "disable-sync-tabs"; |
| 416 |
410 // Disables syncing of themes. | 417 // Disables syncing of themes. |
411 const char kDisableSyncThemes[] = "disable-sync-themes"; | 418 const char kDisableSyncThemes[] = "disable-sync-themes"; |
412 | 419 |
413 // Disables syncing browser typed urls. | 420 // Disables syncing browser typed urls. |
414 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; | 421 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; |
415 | 422 |
416 // Allows disabling of translate from the command line to assist with automated | 423 // Allows disabling of translate from the command line to assist with automated |
417 // browser testing (e.g. Selenium/WebDriver). Normal browser users should | 424 // browser testing (e.g. Selenium/WebDriver). Normal browser users should |
418 // disable translate with the preference. | 425 // disable translate with the preference. |
419 const char kDisableTranslate[] = "disable-translate"; | 426 const char kDisableTranslate[] = "disable-translate"; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 | 656 |
650 // Enables auto correction for misspelled words. | 657 // Enables auto correction for misspelled words. |
651 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; | 658 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; |
652 | 659 |
653 // Enables the stacked tabstrip. | 660 // Enables the stacked tabstrip. |
654 const char kEnableStackedTabStrip[] = "enable-stacked-tab-strip"; | 661 const char kEnableStackedTabStrip[] = "enable-stacked-tab-strip"; |
655 | 662 |
656 // Enables experimental suggestions pane in New Tab page. | 663 // Enables experimental suggestions pane in New Tab page. |
657 const char kEnableSuggestionsTabPage[] = "enable-suggestions-ntp"; | 664 const char kEnableSuggestionsTabPage[] = "enable-suggestions-ntp"; |
658 | 665 |
659 // Enables syncing of history delete directives. | |
660 const char kEnableSyncHistoryDeleteDirectives[] = | |
661 "enable-sync-history-delete-directives"; | |
662 | |
663 // Disables syncing browser sessions. Will override kEnableSyncTabs. | |
664 const char kDisableSyncTabs[] = "disable-sync-tabs"; | |
665 | |
666 // Enables context menu for selecting groups of tabs. | 666 // Enables context menu for selecting groups of tabs. |
667 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; | 667 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; |
668 | 668 |
669 // Spawns threads to watch for excessive delays in specified message loops. | 669 // Spawns threads to watch for excessive delays in specified message loops. |
670 // User should set breakpoints on Alarm() to examine problematic thread. | 670 // User should set breakpoints on Alarm() to examine problematic thread. |
671 // | 671 // |
672 // Usage: -enable-watchdog=[ui][io] | 672 // Usage: -enable-watchdog=[ui][io] |
673 // | 673 // |
674 // Order of the listed sub-arguments does not matter. | 674 // Order of the listed sub-arguments does not matter. |
675 const char kEnableWatchdog[] = "enable-watchdog"; | 675 const char kEnableWatchdog[] = "enable-watchdog"; |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 #elif defined(OS_WIN) | 1635 #elif defined(OS_WIN) |
1636 return CommandLine::ForCurrentProcess()->HasSwitch( | 1636 return CommandLine::ForCurrentProcess()->HasSwitch( |
1637 switches::kEnableChromeStyleDialogs); | 1637 switches::kEnableChromeStyleDialogs); |
1638 #else | 1638 #else |
1639 return CommandLine::ForCurrentProcess()->HasSwitch( | 1639 return CommandLine::ForCurrentProcess()->HasSwitch( |
1640 switches::kEnableChromeStyleDialogs); | 1640 switches::kEnableChromeStyleDialogs); |
1641 #endif | 1641 #endif |
1642 } | 1642 } |
1643 | 1643 |
1644 } // namespace chrome | 1644 } // namespace chrome |
OLD | NEW |