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

Unified Diff: media/base/android/media_player_android.cc

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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: media/base/android/media_player_android.cc
diff --git a/media/base/android/media_player_android.cc b/media/base/android/media_player_android.cc
index d383d64091842785aea3a5c07cb71654b7fc4108..24f1800c598c16e18d70fe67525fb39079d8b177 100644
--- a/media/base/android/media_player_android.cc
+++ b/media/base/android/media_player_android.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "base/android/context_utils.h"
#include "base/android/scoped_java_ref.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
@@ -110,8 +109,7 @@ void MediaPlayerAndroid::OnMediaPrepared() {}
void MediaPlayerAndroid::AttachListener(
const JavaRef<jobject>& j_media_player) {
- listener_->CreateMediaPlayerListener(base::android::GetApplicationContext(),
- j_media_player);
+ listener_->CreateMediaPlayerListener(j_media_player);
}
void MediaPlayerAndroid::DetachListener() {

Powered by Google App Engine
This is Rietveld 408576698