| 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 apps. | 350 // Disables syncing of apps. |
| 351 const char kDisableSyncApps[] = "disable-sync-apps"; | 351 const char kDisableSyncApps[] = "disable-sync-apps"; |
| 352 | 352 |
| 353 // Disable syncing app notifications. | 353 // Disable syncing app notifications. |
| 354 const char kDisableSyncAppNotifications[] = "disable-sync-app-notifications"; | 354 const char kDisableSyncAppNotifications[] = "disable-sync-app-notifications"; |
| 355 | 355 |
| 356 // Disables syncing of autofill. | 356 // Disables syncing of autofill. |
| 357 const char kDisableSyncAutofill[] = "disable-sync-autofill"; | 357 const char kDisableSyncAutofill[] = "disable-sync-autofill"; |
| 358 | 358 |
| 359 // Disables syncing of autofill Profile. | 359 // Disables syncing of autofill Profile. |
| 360 const char kDisableSyncAutofillProfile[] = "disable-sync-autofill-profile"; | 360 const char kDisableSyncAutofillProfile[] = "disable-sync-autofill-profile"; |
| 361 | 361 |
| 362 // Disables syncing of bookmarks. | 362 // Disables syncing of bookmarks. |
| 363 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; | 363 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; |
| 364 | 364 |
| 365 // Disables sync encryption options. | 365 // Disables sync encryption options. |
| 366 const char kDisableSyncEncryption[] = "disable-sync-encryption"; | 366 const char kDisableSyncEncryption[] = "disable-sync-encryption"; |
| 367 |
| 368 // Disables syncing extension settings. |
| 369 const char kDisableSyncExtensionSettings[] = "disable-sync-extension-settings"; |
| 367 | 370 |
| 368 // Disables syncing of extensions. | 371 // Disables syncing of extensions. |
| 369 const char kDisableSyncExtensions[] = "disable-sync-extensions"; | 372 const char kDisableSyncExtensions[] = "disable-sync-extensions"; |
| 370 | 373 |
| 371 // Disables syncing browser passwords. | 374 // Disables syncing browser passwords. |
| 372 const char kDisableSyncPasswords[] = "disable-sync-passwords"; | 375 const char kDisableSyncPasswords[] = "disable-sync-passwords"; |
| 373 | 376 |
| 374 // Disables syncing of preferences. | 377 // Disables syncing of preferences. |
| 375 const char kDisableSyncPreferences[] = "disable-sync-preferences"; | 378 const char kDisableSyncPreferences[] = "disable-sync-preferences"; |
| 376 | 379 |
| 377 // Disable syncing custom search engines. | 380 // Disable syncing custom search engines. |
| 378 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; | 381 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines"; |
| 379 | 382 |
| 380 // Disables syncing of themes. | 383 // Disables syncing of themes. |
| 381 const char kDisableSyncThemes[] = "disable-sync-themes"; | 384 const char kDisableSyncThemes[] = "disable-sync-themes"; |
| 382 | 385 |
| 383 // Disables syncing browser typed urls. | 386 // Disables syncing browser typed urls. |
| 384 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; | 387 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; |
| 385 | 388 |
| 386 // TabCloseableStateWatcher disallows closing of tabs and browsers under | 389 // TabCloseableStateWatcher disallows closing of tabs and browsers under |
| 387 // certain situations on ChromeOS. Some tests expect tabs or browsers to close, | 390 // certain situations on ChromeOS. Some tests expect tabs or browsers to close, |
| 388 // so we need a switch to disable the watcher. | 391 // so we need a switch to disable the watcher. |
| 389 const char kDisableTabCloseableStateWatcher[] = | 392 const char kDisableTabCloseableStateWatcher[] = |
| 390 "disable-tab-closeable-state-watcher"; | 393 "disable-tab-closeable-state-watcher"; |
| 391 | 394 |
| 392 // Disables TLS v1.0 (usually for testing purposes). | 395 // Disables TLS v1.0 (usually for testing purposes). |
| 393 const char kDisableTLS1[] = "disable-tls1"; | 396 const char kDisableTLS1[] = "disable-tls1"; |
| 394 | 397 |
| (...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 | 557 // Some tracking will still take place at startup, but it will be turned off |
| 555 // during chrome_browser_main. | 558 // during chrome_browser_main. |
| 556 const char kEnableProfiling[] = "enable-profiling"; | 559 const char kEnableProfiling[] = "enable-profiling"; |
| 557 | 560 |
| 558 // Controls the support for SDCH filtering (dictionary based expansion of | 561 // Controls the support for SDCH filtering (dictionary based expansion of |
| 559 // content). By default SDCH filtering is enabled. To disable SDCH filtering, | 562 // content). By default SDCH filtering is enabled. To disable SDCH filtering, |
| 560 // use "--enable-sdch=0" as command line argument. SDCH is currently only | 563 // use "--enable-sdch=0" as command line argument. SDCH is currently only |
| 561 // supported server-side for searches on google.com. | 564 // supported server-side for searches on google.com. |
| 562 const char kEnableSdch[] = "enable-sdch"; | 565 const char kEnableSdch[] = "enable-sdch"; |
| 563 | 566 |
| 564 // Enables syncing extension settings. | |
| 565 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; | |
| 566 | |
| 567 // Enables syncing browser sessions. | 567 // Enables syncing browser sessions. |
| 568 const char kEnableSyncTabs[] = "enable-sync-tabs"; | 568 const char kEnableSyncTabs[] = "enable-sync-tabs"; |
| 569 | 569 |
| 570 // Enables syncing browser sessions for other synced clients. | 570 // Enables syncing browser sessions for other synced clients. |
| 571 const char kEnableSyncTabsForOtherClients[] = | 571 const char kEnableSyncTabsForOtherClients[] = |
| 572 "enable-sync-tabs-for-other-clients"; | 572 "enable-sync-tabs-for-other-clients"; |
| 573 | 573 |
| 574 // Enables context menu for selecting groups of tabs. | 574 // Enables context menu for selecting groups of tabs. |
| 575 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; | 575 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; |
| 576 | 576 |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 | 1331 |
| 1332 // ----------------------------------------------------------------------------- | 1332 // ----------------------------------------------------------------------------- |
| 1333 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1333 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1334 // | 1334 // |
| 1335 // You were going to just dump your switches here, weren't you? Instead, please | 1335 // You were going to just dump your switches here, weren't you? Instead, please |
| 1336 // put them in alphabetical order above, or in order inside the appropriate | 1336 // put them in alphabetical order above, or in order inside the appropriate |
| 1337 // ifdef at the bottom. The order should match the header. | 1337 // ifdef at the bottom. The order should match the header. |
| 1338 // ----------------------------------------------------------------------------- | 1338 // ----------------------------------------------------------------------------- |
| 1339 | 1339 |
| 1340 } // namespace switches | 1340 } // namespace switches |
| OLD | NEW |