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

Unified Diff: chrome/browser/media/android/router/media_router_android.cc

Issue 2799263002: Reland "Android: Remove GetApplicationContext part 2" (Closed)
Patch Set: Fix extra parameter 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/media/android/router/media_router_android.cc
diff --git a/chrome/browser/media/android/router/media_router_android.cc b/chrome/browser/media/android/router/media_router_android.cc
index de45459ddefc46f66109eed38043bbf475149960..f43dab543f462ffd9fbc3b72a60b2addd37767dd 100644
--- a/chrome/browser/media/android/router/media_router_android.cc
+++ b/chrome/browser/media/android/router/media_router_android.cc
@@ -8,7 +8,6 @@
#include <utility>
#include <vector>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
@@ -46,10 +45,8 @@ MediaRouterAndroid::MediaRouteRequest::~MediaRouteRequest() {}
MediaRouterAndroid::MediaRouterAndroid(content::BrowserContext*) {
JNIEnv* env = base::android::AttachCurrentThread();
- java_media_router_.Reset(Java_ChromeMediaRouter_create(
- env,
- reinterpret_cast<jlong>(this),
- base::android::GetApplicationContext()));
+ java_media_router_.Reset(
+ Java_ChromeMediaRouter_create(env, reinterpret_cast<jlong>(this)));
}
MediaRouterAndroid::~MediaRouterAndroid() {

Powered by Google App Engine
This is Rietveld 408576698