| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "components/spellcheck/common/spellcheck_switches.h" | 6 #include "components/spellcheck/common/spellcheck_switches.h" |
| 7 | 7 |
| 8 namespace spellcheck { | 8 namespace spellcheck { |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 #if defined(ENABLE_SPELLCHECK) | 11 #if defined(ENABLE_SPELLCHECK) |
| 12 #if defined(OS_ANDROID) | |
| 13 // Enables use of the Android spellchecker. | |
| 14 const char kEnableAndroidSpellChecker[] = "enable-android-spellchecker"; | |
| 15 #endif // defined(OS_ANDROID) | |
| 16 | |
| 17 // Enables participation in the field trial for user feedback to spelling | 12 // Enables participation in the field trial for user feedback to spelling |
| 18 // service. | 13 // service. |
| 19 const char kEnableSpellingFeedbackFieldTrial[] = | 14 const char kEnableSpellingFeedbackFieldTrial[] = |
| 20 "enable-spelling-feedback-field-trial"; | 15 "enable-spelling-feedback-field-trial"; |
| 21 | 16 |
| 22 // Specifies the number of seconds between sending batches of feedback to | 17 // Specifies the number of seconds between sending batches of feedback to |
| 23 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This | 18 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This |
| 24 // switch is for temporary testing only. | 19 // switch is for temporary testing only. |
| 25 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by | 20 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by |
| 26 // August 2013. | 21 // August 2013. |
| 27 const char kSpellingServiceFeedbackIntervalSeconds[] = | 22 const char kSpellingServiceFeedbackIntervalSeconds[] = |
| 28 "spelling-service-feedback-interval-seconds"; | 23 "spelling-service-feedback-interval-seconds"; |
| 29 | 24 |
| 30 // Specifies the URL where spelling service feedback data will be sent instead | 25 // Specifies the URL where spelling service feedback data will be sent instead |
| 31 // of the default URL. This switch is for temporary testing only. | 26 // of the default URL. This switch is for temporary testing only. |
| 32 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by | 27 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by |
| 33 // August 2013. | 28 // August 2013. |
| 34 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url"; | 29 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url"; |
| 35 #endif // defined(ENABLE_SPELLCHECK) | 30 #endif // defined(ENABLE_SPELLCHECK) |
| 36 | 31 |
| 37 } // namespace switches | 32 } // namespace switches |
| 38 } // namespace spellcheck | 33 } // namespace spellcheck |
| OLD | NEW |