Bug 1160064 - Explicitly initialize logging at the right time. r=jww

The patches in this bug can cause us to log things before some of the Ensure*Log
macros are called. Let's just do this right.
This commit is contained in:
Bobby Holley
2015-04-30 19:04:59 -07:00
parent d097a18fc7
commit 7459448854
5 changed files with 10 additions and 40 deletions

View File

@@ -2099,7 +2099,6 @@ HTMLMediaElement::HTMLMediaElement(already_AddRefed<mozilla::dom::NodeInfo>& aNo
if (!gMediaElementEventsLog) {
gMediaElementEventsLog = PR_NewLogModule("nsMediaElementEvents");
}
EnsureStateWatchingLog();
#endif
mAudioChannel = AudioChannelService::GetDefaultAudioChannel();