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 #ifndef COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ | 5 #ifndef COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ |
6 #define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ | 6 #define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ |
7 | 7 |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "components/spellcheck/spellcheck_build_features.h" |
9 | 10 |
10 namespace spellcheck { | 11 namespace spellcheck { |
11 | 12 |
12 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID) | 13 #if BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_ANDROID) |
13 extern const base::Feature kAndroidSpellChecker; | 14 extern const base::Feature kAndroidSpellChecker; |
14 extern const base::Feature kAndroidSpellCheckerNonLowEnd; | 15 extern const base::Feature kAndroidSpellCheckerNonLowEnd; |
15 | 16 |
16 bool IsAndroidSpellCheckFeatureEnabled(); | 17 bool IsAndroidSpellCheckFeatureEnabled(); |
17 #endif // defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID) | 18 #endif // BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_ANDROID) |
18 | 19 |
19 } // namespace spellcheck | 20 } // namespace spellcheck |
20 | 21 |
21 #endif // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ | 22 #endif // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_FEATURES_H_ |
OLD | NEW |