| Index: chrome/browser/chromeos/media/media_player.cc
|
| ===================================================================
|
| --- chrome/browser/chromeos/media/media_player.cc (revision 91880)
|
| +++ chrome/browser/chromeos/media/media_player.cc (working copy)
|
| @@ -162,12 +162,12 @@
|
| NotifyPlaylistChanged();
|
| }
|
|
|
| -void MediaPlayer::Observe(NotificationType type,
|
| +void MediaPlayer::Observe(int type,
|
| const NotificationSource& source,
|
| const NotificationDetails& details) {
|
| - DCHECK(type == NotificationType::BROWSER_CLOSING);
|
| + DCHECK(type == chrome::NOTIFICATION_BROWSER_CLOSING);
|
| registrar_.Remove(this,
|
| - NotificationType::BROWSER_CLOSING,
|
| + chrome::NOTIFICATION_BROWSER_CLOSING,
|
| source);
|
| if (Source<Browser>(source).ptr() == mediaplayer_browser_) {
|
| mediaplayer_browser_ = NULL;
|
| @@ -203,7 +203,7 @@
|
| gfx::Rect(),
|
| profile);
|
| registrar_.Add(this,
|
| - NotificationType::BROWSER_CLOSING,
|
| + chrome::NOTIFICATION_BROWSER_CLOSING,
|
| Source<Browser>(playlist_browser_));
|
| playlist_browser_->AddSelectedTabWithURL(GetMediaplayerPlaylistUrl(),
|
| PageTransition::LINK);
|
| @@ -228,7 +228,7 @@
|
| gfx::Rect(),
|
| profile);
|
| registrar_.Add(this,
|
| - NotificationType::BROWSER_CLOSING,
|
| + chrome::NOTIFICATION_BROWSER_CLOSING,
|
| Source<Browser>(mediaplayer_browser_));
|
|
|
| #if defined(OS_CHROMEOS)
|
|
|