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

Unified Diff: chromecast/base/chromecast_config_android.cc

Issue 2807263002: Android: Remove GetApplicationContext for cast (Closed)
Patch Set: 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: chromecast/base/chromecast_config_android.cc
diff --git a/chromecast/base/chromecast_config_android.cc b/chromecast/base/chromecast_config_android.cc
index c9a39167a5ba3a99164f6d5adf5d5d3f68028b57..a13da602e7256524c8f08fe1fe15faf9ee29e038 100644
--- a/chromecast/base/chromecast_config_android.cc
+++ b/chromecast/base/chromecast_config_android.cc
@@ -4,7 +4,6 @@
#include "chromecast/base/chromecast_config_android.h"
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/lazy_instance.h"
#include "jni/ChromecastConfigAndroid_jni.h"
@@ -39,8 +38,7 @@ bool ChromecastConfigAndroid::CanSendUsageStats() {
// TODO(gunsch): make opt-in.stats pref the source of truth for this data,
// instead of Android prefs, then delete ChromecastConfigAndroid.
JNIEnv* env = base::android::AttachCurrentThread();
- return Java_ChromecastConfigAndroid_canSendUsageStats(
- env, base::android::GetApplicationContext());
+ return Java_ChromecastConfigAndroid_canSendUsageStats(env);
}
// Registers a handler to be notified when SendUsageStats is changed.

Powered by Google App Engine
This is Rietveld 408576698