Bug 1038796 - Notify hang activity when processing Android app shell events; r=snorp

This commit is contained in:
Jim Chen 2014-07-18 12:53:41 -04:00
parent f8bc213b2f
commit 5c725bc170

View File

@ -26,6 +26,7 @@
#include "nsINetworkLinkService.h"
#include "nsCategoryManagerUtils.h"
#include "mozilla/BackgroundHangMonitor.h"
#include "mozilla/Services.h"
#include "mozilla/unused.h"
#include "mozilla/Preferences.h"
@ -261,6 +262,8 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
if (!curEvent)
return false;
mozilla::BackgroundHangMonitor().NotifyActivity();
EVLOG("nsAppShell: event %p %d", (void*)curEvent.get(), curEvent->Type());
switch (curEvent->Type()) {