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

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

Issue 1215713021: Reverted the code for the non-interactive audible tab notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification
Patch Set: Fixed indent Created 5 years, 4 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 | « media/base/android/media_player_android.h ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99668e8122fa1d3afa52e4eb411fe0ef4021d783..ed38d971b0247694ad743cfd7961d40877cca82b 100644
--- a/media/base/android/media_player_android.cc
+++ b/media/base/android/media_player_android.cc
@@ -22,7 +22,6 @@ MediaPlayerAndroid::MediaPlayerAndroid(
player_id_(player_id),
manager_(manager),
frame_url_(frame_url),
- is_audible_(false),
weak_factory_(this) {
listener_.reset(new MediaPlayerListener(base::ThreadTaskRunnerHandle::Get(),
weak_factory_.GetWeakPtr()));
@@ -91,13 +90,6 @@ void MediaPlayerAndroid::DestroyListenerOnUIThread() {
listener_.reset();
}
-void MediaPlayerAndroid::SetAudible(bool is_audible) {
- if (is_audible_ != is_audible) {
- is_audible_ = is_audible;
- manager_->OnAudibleStateChanged(player_id(), is_audible_);
- }
-}
-
base::WeakPtr<MediaPlayerAndroid> MediaPlayerAndroid::WeakPtrForUIThread() {
return weak_factory_.GetWeakPtr();
}
« no previous file with comments | « media/base/android/media_player_android.h ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698