Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2318)

Unified Diff: chrome/browser/speech/tts_android.h

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>;

Powered by Google App Engine
This is Rietveld 408576698