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

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
« no previous file with comments | « chrome/browser/chromeos/media/media_player.h ('k') | chrome/browser/chromeos/network_state_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/media/media_player.cc
===================================================================
--- chrome/browser/chromeos/media/media_player.cc (revision 91971)
+++ chrome/browser/chromeos/media/media_player.cc (working copy)
@@ -27,6 +27,7 @@
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/webui/favicon_source.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/jstemplate_builder.h"
@@ -162,12 +163,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 +204,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 +229,7 @@
gfx::Rect(),
profile);
registrar_.Add(this,
- NotificationType::BROWSER_CLOSING,
+ chrome::NOTIFICATION_BROWSER_CLOSING,
Source<Browser>(mediaplayer_browser_));
#if defined(OS_CHROMEOS)
« no previous file with comments | « chrome/browser/chromeos/media/media_player.h ('k') | chrome/browser/chromeos/network_state_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698