Title: [242909] trunk/Source
- Revision
- 242909
- Author
- [email protected]
- Date
- 2019-03-13 14:22:33 -0700 (Wed, 13 Mar 2019)
Log Message
Better build fix after r242901.
Reviewed by Jer Noble.
Source/WebCore:
* platform/audio/cocoa/MediaSessionManagerCocoa.mm:
(MediaSessionManagerCocoa::sessionWillBeginPlayback):
(MediaSessionManagerCocoa::updateNowPlayingInfo):
Source/WTF:
* wtf/Logger.h:
(WTF::LogArgument::toString):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (242908 => 242909)
--- trunk/Source/WTF/ChangeLog 2019-03-13 21:18:34 UTC (rev 242908)
+++ trunk/Source/WTF/ChangeLog 2019-03-13 21:22:33 UTC (rev 242909)
@@ -1,3 +1,12 @@
+2019-03-13 Chris Dumez <[email protected]>
+
+ Better build fix after r242901.
+
+ Reviewed by Jer Noble.
+
+ * wtf/Logger.h:
+ (WTF::LogArgument::toString):
+
2019-03-13 Jer Noble <[email protected]>
Add AggregateLogger, a Logger specialization for singleton classes.
Modified: trunk/Source/WTF/wtf/Logger.h (242908 => 242909)
--- trunk/Source/WTF/wtf/Logger.h 2019-03-13 21:18:34 UTC (rev 242908)
+++ trunk/Source/WTF/wtf/Logger.h 2019-03-13 21:22:33 UTC (rev 242909)
@@ -36,6 +36,7 @@
template<typename U = T> static typename std::enable_if<std::is_same<U, unsigned>::value, String>::type toString(unsigned argument) { return String::number(argument); }
template<typename U = T> static typename std::enable_if<std::is_same<U, unsigned long>::value, String>::type toString(unsigned long argument) { return String::number(argument); }
template<typename U = T> static typename std::enable_if<std::is_same<U, long>::value, String>::type toString(long argument) { return String::number(argument); }
+ template<typename U = T> static typename std::enable_if<std::is_enum<U>::value, String>::type toString(U argument) { return String::number(static_cast<typename std::underlying_type<U>::type>(argument)); }
template<typename U = T> static typename std::enable_if<std::is_same<U, float>::value, String>::type toString(float argument) { return String::numberToStringFixedPrecision(argument); }
template<typename U = T> static typename std::enable_if<std::is_same<U, double>::value, String>::type toString(double argument) { return String::numberToStringFixedPrecision(argument); }
template<typename U = T> static typename std::enable_if<std::is_same<typename std::remove_reference<U>::type, AtomicString>::value, String>::type toString(const AtomicString& argument) { return argument.string(); }
Modified: trunk/Source/WebCore/ChangeLog (242908 => 242909)
--- trunk/Source/WebCore/ChangeLog 2019-03-13 21:18:34 UTC (rev 242908)
+++ trunk/Source/WebCore/ChangeLog 2019-03-13 21:22:33 UTC (rev 242909)
@@ -1,3 +1,13 @@
+2019-03-13 Chris Dumez <[email protected]>
+
+ Better build fix after r242901.
+
+ Reviewed by Jer Noble.
+
+ * platform/audio/cocoa/MediaSessionManagerCocoa.mm:
+ (MediaSessionManagerCocoa::sessionWillBeginPlayback):
+ (MediaSessionManagerCocoa::updateNowPlayingInfo):
+
2019-03-13 Timothy Hatcher <[email protected]>
Consolidate ArgumentCodersMac and ArgumentCodersCocoa.
Modified: trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm (242908 => 242909)
--- trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm 2019-03-13 21:18:34 UTC (rev 242908)
+++ trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm 2019-03-13 21:22:33 UTC (rev 242909)
@@ -139,7 +139,7 @@
{
if (!PlatformMediaSessionManager::sessionWillBeginPlayback(session))
return false;
-
+
scheduleUpdateNowPlayingInfo();
return true;
}
@@ -213,7 +213,7 @@
UNUSED_PARAM(error);
#else
if (error)
- ALWAYS_LOG(LOGIDENTIFIER, "MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin(stopped) failed with error ", static_cast<uint32_t>(error));
+ ALWAYS_LOG(LOGIDENTIFIER, "MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin(stopped) failed with error ", error);
#endif
});
@@ -268,7 +268,7 @@
#if LOG_DISABLED
UNUSED_PARAM(error);
#else
- ALWAYS_LOG(LOGIDENTIFIER, "MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin(playing) failed with error ", static_cast<uint32_t>(error));
+ ALWAYS_LOG(LOGIDENTIFIER, "MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin(playing) failed with error ", error);
#endif
});
MRMediaRemoteSetNowPlayingInfo(info.get());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes