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

Unified Diff: content/renderer/media/renderer_webmediaplayer_delegate.cc

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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 | « content/renderer/media/renderer_webmediaplayer_delegate.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_webmediaplayer_delegate.cc
diff --git a/content/renderer/media/renderer_webmediaplayer_delegate.cc b/content/renderer/media/renderer_webmediaplayer_delegate.cc
index c7691511ace7cc7c13f2f6429aabbebce2255541..5712a347255a11f068a810303f01a9d885f89e6d 100644
--- a/content/renderer/media/renderer_webmediaplayer_delegate.cc
+++ b/content/renderer/media/renderer_webmediaplayer_delegate.cc
@@ -115,7 +115,7 @@ bool RendererWebMediaPlayerDelegate::IsPlayingBackgroundVideo() {
}
void RendererWebMediaPlayerDelegate::WasHidden() {
- for (IDMap<Observer>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
+ for (IDMap<Observer*>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
it.GetCurrentValue()->OnHidden();
RecordAction(base::UserMetricsAction("Media.Hidden"));
@@ -123,7 +123,7 @@ void RendererWebMediaPlayerDelegate::WasHidden() {
void RendererWebMediaPlayerDelegate::WasShown() {
SetIsPlayingBackgroundVideo(false);
- for (IDMap<Observer>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
+ for (IDMap<Observer*>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
it.GetCurrentValue()->OnShown();
RecordAction(base::UserMetricsAction("Media.Shown"));
@@ -177,7 +177,7 @@ void RendererWebMediaPlayerDelegate::OnMediaDelegatePlay(int delegate_id) {
}
void RendererWebMediaPlayerDelegate::OnMediaDelegateSuspendAllMediaPlayers() {
- for (IDMap<Observer>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
+ for (IDMap<Observer*>::iterator it(&id_map_); !it.IsAtEnd(); it.Advance())
it.GetCurrentValue()->OnSuspendRequested(true);
}
« no previous file with comments | « content/renderer/media/renderer_webmediaplayer_delegate.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698