| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/translate/core/common/translate_switches.h" | 5 #include "components/translate/core/common/translate_switches.h" |
| 6 | 6 |
| 7 namespace translate { | 7 namespace translate { |
| 8 namespace switches { | 8 namespace switches { |
| 9 | 9 |
| 10 // Allows disabling of translate from the command line to assist with automated | |
| 11 // browser testing (e.g. Selenium/WebDriver). Normal browser users should | |
| 12 // disable translate with the preference. | |
| 13 const char kDisableTranslate[] = "disable-translate"; | |
| 14 | |
| 15 // Overrides the default server used for Google Translate. | 10 // Overrides the default server used for Google Translate. |
| 16 const char kTranslateScriptURL[] = "translate-script-url"; | 11 const char kTranslateScriptURL[] = "translate-script-url"; |
| 17 | 12 |
| 18 // Overrides security-origin with which Translate runs in an isolated world. | 13 // Overrides security-origin with which Translate runs in an isolated world. |
| 19 const char kTranslateSecurityOrigin[] = "translate-security-origin"; | 14 const char kTranslateSecurityOrigin[] = "translate-security-origin"; |
| 20 | 15 |
| 21 // Overrides the URL from which the translate ranker model is downloaded. | 16 // Overrides the URL from which the translate ranker model is downloaded. |
| 22 const char kTranslateRankerModelURL[] = "translate-ranker-model-url"; | 17 const char kTranslateRankerModelURL[] = "translate-ranker-model-url"; |
| 23 | 18 |
| 24 } // namespace switches | 19 } // namespace switches |
| 25 } // namespace translate | 20 } // namespace translate |
| OLD | NEW |