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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/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)

Powered by Google App Engine
This is Rietveld 408576698