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

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

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 months 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.cc
diff --git a/chrome/browser/speech/tts_android.cc b/chrome/browser/speech/tts_android.cc
index 1b558e41274313cf160ad7abd8777c840fd5f96b..35ca0b2d4fe7f88bd600a947ad81e7e8a25a7205 100644
--- a/chrome/browser/speech/tts_android.cc
+++ b/chrome/browser/speech/tts_android.cc
@@ -6,7 +6,6 @@
#include <string>
-#include "base/android/context_utils.h"
#include "base/android/jni_string.h"
#include "base/memory/singleton.h"
#include "base/strings/utf_string_conversions.h"
@@ -26,9 +25,7 @@ TtsPlatformImplAndroid::TtsPlatformImplAndroid()
: utterance_id_(0) {
JNIEnv* env = AttachCurrentThread();
java_ref_.Reset(
- Java_TtsPlatformImpl_create(env,
- reinterpret_cast<intptr_t>(this),
- base::android::GetApplicationContext()));
+ Java_TtsPlatformImpl_create(env, reinterpret_cast<intptr_t>(this)));
}
TtsPlatformImplAndroid::~TtsPlatformImplAndroid() {

Powered by Google App Engine
This is Rietveld 408576698