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