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

Unified Diff: chrome/browser/android/background_sync_launcher_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/android/background_sync_launcher_android.cc
diff --git a/chrome/browser/android/background_sync_launcher_android.cc b/chrome/browser/android/background_sync_launcher_android.cc
index c31cac9461681d69efc2d9fc410520ccd375c53c..e5f5867448509037120c35edb6ec04f23a0704fd 100644
--- a/chrome/browser/android/background_sync_launcher_android.cc
+++ b/chrome/browser/android/background_sync_launcher_android.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/android/background_sync_launcher_android.h"
-#include "base/android/context_utils.h"
#include "content/public/browser/browser_thread.h"
#include "jni/BackgroundSyncLauncher_jni.h"
@@ -61,16 +60,14 @@ bool BackgroundSyncLauncherAndroid::ShouldDisableBackgroundSync() {
return false;
}
return Java_BackgroundSyncLauncher_shouldDisableBackgroundSync(
- base::android::AttachCurrentThread(),
- base::android::GetApplicationContext());
+ base::android::AttachCurrentThread());
}
BackgroundSyncLauncherAndroid::BackgroundSyncLauncherAndroid() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
JNIEnv* env = base::android::AttachCurrentThread();
- java_launcher_.Reset(Java_BackgroundSyncLauncher_create(
- env, base::android::GetApplicationContext()));
+ java_launcher_.Reset(Java_BackgroundSyncLauncher_create(env));
}
BackgroundSyncLauncherAndroid::~BackgroundSyncLauncherAndroid() {

Powered by Google App Engine
This is Rietveld 408576698