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

Unified Diff: chromecast/base/android/system_time_change_notifier_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
« no previous file with comments | « chromecast/app/android/crash_handler.cc ('k') | chromecast/base/chromecast_config_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/android/system_time_change_notifier_android.cc
diff --git a/chromecast/base/android/system_time_change_notifier_android.cc b/chromecast/base/android/system_time_change_notifier_android.cc
index 185c76af208b9b9fb7469a37c82aa56d3150beb4..2aa8bdf549077c1ec318bd4abf1cb59bd567a1f1 100644
--- a/chromecast/base/android/system_time_change_notifier_android.cc
+++ b/chromecast/base/android/system_time_change_notifier_android.cc
@@ -4,7 +4,6 @@
#include "chromecast/base/android/system_time_change_notifier_android.h"
-#include "base/android/context_utils.h"
#include "jni/SystemTimeChangeNotifierAndroid_jni.h"
using base::android::JavaParamRef;
@@ -24,8 +23,7 @@ SystemTimeChangeNotifierAndroid::~SystemTimeChangeNotifierAndroid() {
void SystemTimeChangeNotifierAndroid::Initialize() {
JNIEnv* env = base::android::AttachCurrentThread();
- java_notifier_.Reset(Java_SystemTimeChangeNotifierAndroid_create(
- env, base::android::GetApplicationContext()));
+ java_notifier_.Reset(Java_SystemTimeChangeNotifierAndroid_create(env));
Java_SystemTimeChangeNotifierAndroid_initializeFromNative(
env, java_notifier_, reinterpret_cast<jlong>(this));
}
« no previous file with comments | « chromecast/app/android/crash_handler.cc ('k') | chromecast/base/chromecast_config_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698