Index: chrome/browser/speech/tts_android.h |
diff --git a/chrome/browser/speech/tts_android.h b/chrome/browser/speech/tts_android.h |
index f6ce3b237fde39abd19745cd49ead4201849047e..f38d674ef1241de52ec550700899905962df0300 100644 |
--- a/chrome/browser/speech/tts_android.h |
+++ b/chrome/browser/speech/tts_android.h |
@@ -8,6 +8,7 @@ |
#include "base/android/jni_android.h" |
#include "base/android/scoped_java_ref.h" |
#include "chrome/browser/speech/tts_platform.h" |
+#include "chrome/common/features.h" |
class TtsPlatformImplAndroid : public TtsPlatformImpl { |
public: |
@@ -32,7 +33,9 @@ class TtsPlatformImplAndroid : public TtsPlatformImpl { |
// Static functions. |
static TtsPlatformImplAndroid* GetInstance(); |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
static bool Register(JNIEnv* env); |
+#endif |
private: |
friend struct base::DefaultSingletonTraits<TtsPlatformImplAndroid>; |