| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 // Some field tests may rendomized in the browser, and the randomly selected | 470 // Some field tests may rendomized in the browser, and the randomly selected |
| 471 // outcome needs to be propogated to the renderer. For instance, this is used | 471 // outcome needs to be propogated to the renderer. For instance, this is used |
| 472 // to modify histograms recorded in the renderer, or to get the renderer to | 472 // to modify histograms recorded in the renderer, or to get the renderer to |
| 473 // also set of its state (initialize, or not initialize components) to match the | 473 // also set of its state (initialize, or not initialize components) to match the |
| 474 // experiment(s). | 474 // experiment(s). |
| 475 // The argument is a string-ized list of experiment names, and the associated | 475 // The argument is a string-ized list of experiment names, and the associated |
| 476 // value that was randomly selected. In the recent implementetaion, the | 476 // value that was randomly selected. In the recent implementetaion, the |
| 477 // persistent representation generated by field_trial.cc and later decoded, is a | 477 // persistent representation generated by field_trial.cc and later decoded, is a |
| 478 // list of name and value pairs, separated by slashes. See field trial.cc for | 478 // list of name and value pairs, separated by slashes. See field trial.cc for |
| 479 // current details. | 479 // current details. |
| 480 const wchar_t kForceFieldTestNameAndValue[] = L"force-fieldtest"; | 480 const wchar_t kForceFieldTestNameAndValue[] = L"force-fieldtest"; |
| 481 | 481 |
| 482 // Allows the new tab page resource to be loaded from a local HTML file. This | 482 // Allows the new tab page resource to be loaded from a local HTML file. This |
| 483 // should be a path to the HTML file that you want to use for the new tab page. | 483 // should be a path to the HTML file that you want to use for the new tab page. |
| 484 const wchar_t kNewTabPage[] = L"new-tab-page"; | 484 const wchar_t kNewTabPage[] = L"new-tab-page"; |
| 485 | 485 |
| 486 // Switches back to the old new tab page. | 486 // Switches back to the old new tab page. |
| 487 const wchar_t kOldNewTabPage[] = L"old-new-tab-page"; | 487 const wchar_t kOldNewTabPage[] = L"old-new-tab-page"; |
| 488 | 488 |
| 489 // Enables the backend service for web resources, used in the new tab page for | 489 // Enables the backend service for web resources, used in the new tab page for |
| 490 // loading tips and recommendations from a JSON feed. | 490 // loading tips and recommendations from a JSON feed. |
| 491 const wchar_t kEnableWebResources[] = L"enable-web-resources"; | 491 const wchar_t kEnableWebResources[] = L"enable-web-resources"; |
| 492 |
| 493 // Whether we should prevent the new tab page from showing the first run |
| 494 // notification. |
| 495 const wchar_t kDisableNewTabFirstRun[] = L"disable-new-tab-first-run"; |
| 492 | 496 |
| 493 // Disables the default browser check. Useful for UI/browser tests where we want | 497 // Disables the default browser check. Useful for UI/browser tests where we want |
| 494 // to avoid having the default browser info-bar displayed. | 498 // to avoid having the default browser info-bar displayed. |
| 495 const wchar_t kNoDefaultBrowserCheck[] = L"no-default-browser-check"; | 499 const wchar_t kNoDefaultBrowserCheck[] = L"no-default-browser-check"; |
| 496 | 500 |
| 497 // Enables the Privacy Blacklist with the specified data file. | 501 // Enables the Privacy Blacklist with the specified data file. |
| 498 // The file contains data from all imported blacklists. | 502 // The file contains data from all imported blacklists. |
| 499 const wchar_t kPrivacyBlacklist[] = L"privacy-blacklist"; | 503 const wchar_t kPrivacyBlacklist[] = L"privacy-blacklist"; |
| 500 | 504 |
| 501 // Enables the benchmarking extensions. | 505 // Enables the benchmarking extensions. |
| 502 const wchar_t kEnableBenchmarking[] = L"enable-benchmarking"; | 506 const wchar_t kEnableBenchmarking[] = L"enable-benchmarking"; |
| 503 | 507 |
| 504 // The prefix used when starting the zygote process. (i.e. 'gdb --args') | 508 // The prefix used when starting the zygote process. (i.e. 'gdb --args') |
| 505 const wchar_t kZygoteCmdPrefix[] = L"zygote-cmd-prefix"; | 509 const wchar_t kZygoteCmdPrefix[] = L"zygote-cmd-prefix"; |
| 506 | 510 |
| 507 // Enables using ThumbnailStore instead of ThumbnailDatabase for setting and | 511 // Enables using ThumbnailStore instead of ThumbnailDatabase for setting and |
| 508 // getting thumbnails for the new tab page. | 512 // getting thumbnails for the new tab page. |
| 509 const wchar_t kThumbnailStore[] = L"thumbnail-store"; | 513 const wchar_t kThumbnailStore[] = L"thumbnail-store"; |
| 510 | 514 |
| 511 // Experimental. Shows a dialog asking the user to try chrome. This flag | 515 // Experimental. Shows a dialog asking the user to try chrome. This flag |
| 512 // is to be used only by the upgrade process. | 516 // is to be used only by the upgrade process. |
| 513 const wchar_t kTryChromeAgain[] = L"try-chrome-again"; | 517 const wchar_t kTryChromeAgain[] = L"try-chrome-again"; |
| 514 | 518 |
| 515 // The file descriptor limit is set to the value of this switch, subject to the | 519 // The file descriptor limit is set to the value of this switch, subject to the |
| 516 // OS hard limits. Useful for testing that file descriptor exhaustion is handled | 520 // OS hard limits. Useful for testing that file descriptor exhaustion is handled |
| 517 // gracefully. | 521 // gracefully. |
| 518 const wchar_t kFileDescriptorLimit[] = L"file-descriptor-limit"; | 522 const wchar_t kFileDescriptorLimit[] = L"file-descriptor-limit"; |
| 519 | 523 |
| 520 // On Windows, converts the page to the currently-installed monitor profile. | 524 // On Windows, converts the page to the currently-installed monitor profile. |
| 521 // This does NOT enable color management for images. The source is still assumed | 525 // This does NOT enable color management for images. The source is still assumed |
| 522 // to be sRGB. | 526 // to be sRGB. |
| 523 const wchar_t kEnableMonitorProfile[] = L"enable-monitor-profile"; | 527 const wchar_t kEnableMonitorProfile[] = L"enable-monitor-profile"; |
| 524 | 528 |
| 525 // Enable WebKit's XSSAuditor to mitigate reflective XSS. The XSSAuditor is | 529 // Enable WebKit's XSSAuditor to mitigate reflective XSS. The XSSAuditor is |
| 526 // still experimental. | 530 // still experimental. |
| 527 const wchar_t kEnableXSSAuditor[] = L"enable-xss-auditor"; | 531 const wchar_t kEnableXSSAuditor[] = L"enable-xss-auditor"; |
| 528 | 532 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 551 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). | 555 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). |
| 552 const wchar_t kAllowSandboxDebugging[] = L"allow-sandbox-debugging"; | 556 const wchar_t kAllowSandboxDebugging[] = L"allow-sandbox-debugging"; |
| 553 | 557 |
| 554 // Triggers a pletora of diagnostic modes. | 558 // Triggers a pletora of diagnostic modes. |
| 555 const wchar_t kDiagnostics[] = L"diagnostics"; | 559 const wchar_t kDiagnostics[] = L"diagnostics"; |
| 556 | 560 |
| 557 // Enables the custom JumpList on Windows 7. | 561 // Enables the custom JumpList on Windows 7. |
| 558 const wchar_t kEnableCustomJumpList[] = L"enable-custom-jumplist"; | 562 const wchar_t kEnableCustomJumpList[] = L"enable-custom-jumplist"; |
| 559 | 563 |
| 560 } // namespace switches | 564 } // namespace switches |
| OLD | NEW |