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

Unified Diff: chrome/browser/chromeos/media/media_player.cc

Issue 7741021: Fixing: Media file doesn't play after closing the media player using ctrl + w (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/media/media_player.cc
diff --git a/chrome/browser/chromeos/media/media_player.cc b/chrome/browser/chromeos/media/media_player.cc
index 9ca45290cfc400448332ecb00ca6f6860674357a..1481e7f94b9262066c950b8c4c8c4f79a5fdcd49 100644
--- a/chrome/browser/chromeos/media/media_player.cc
+++ b/chrome/browser/chromeos/media/media_player.cc
@@ -167,9 +167,9 @@ void MediaPlayer::SetPlaybackError(GURL const& url) {
void MediaPlayer::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == chrome::NOTIFICATION_BROWSER_CLOSING);
+ DCHECK(type == chrome::NOTIFICATION_BROWSER_CLOSED);
registrar_.Remove(this,
- chrome::NOTIFICATION_BROWSER_CLOSING,
+ chrome::NOTIFICATION_BROWSER_CLOSED,
source);
if (Source<Browser>(source).ptr() == mediaplayer_browser_) {
mediaplayer_browser_ = NULL;
@@ -205,7 +205,7 @@ void MediaPlayer::PopupPlaylist(Browser* creator) {
gfx::Rect(),
profile);
registrar_.Add(this,
- chrome::NOTIFICATION_BROWSER_CLOSING,
+ chrome::NOTIFICATION_BROWSER_CLOSED,
Source<Browser>(playlist_browser_));
playlist_browser_->AddSelectedTabWithURL(GetMediaplayerPlaylistUrl(),
PageTransition::LINK);
@@ -230,7 +230,7 @@ void MediaPlayer::PopupMediaPlayer(Browser* creator) {
gfx::Rect(),
profile);
registrar_.Add(this,
- chrome::NOTIFICATION_BROWSER_CLOSING,
+ chrome::NOTIFICATION_BROWSER_CLOSED,
Source<Browser>(mediaplayer_browser_));
#if defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698