зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 8f489e406701 (bug 822135) for m(dt) failures CLOSED TREE
This commit is contained in:
Родитель
661f8d914d
Коммит
c0ddea6e1b
|
@ -24,7 +24,7 @@ using mozilla::ErrorResult;
|
|||
using mozilla::dom::Promise;
|
||||
using std::string;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsProfiler, nsIProfiler, nsISupportsWeakReference)
|
||||
NS_IMPL_ISUPPORTS(nsProfiler, nsIProfiler)
|
||||
|
||||
nsProfiler::nsProfiler()
|
||||
: mLockedForPrivateBrowsing(false)
|
||||
|
@ -44,8 +44,8 @@ nsresult
|
|||
nsProfiler::Init() {
|
||||
nsCOMPtr<nsIObserverService> observerService = mozilla::services::GetObserverService();
|
||||
if (observerService) {
|
||||
observerService->AddObserver(this, "chrome-document-global-created", true);
|
||||
observerService->AddObserver(this, "last-pb-context-exited", true);
|
||||
observerService->AddObserver(this, "chrome-document-global-created", false);
|
||||
observerService->AddObserver(this, "last-pb-context-exited", false);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -8,12 +8,9 @@
|
|||
|
||||
#include "nsIProfiler.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsProfiler final : public nsIProfiler
|
||||
, public nsIObserver
|
||||
, public nsSupportsWeakReference
|
||||
class nsProfiler final : public nsIProfiler, public nsIObserver
|
||||
{
|
||||
public:
|
||||
nsProfiler();
|
||||
|
|
Загрузка…
Ссылка в новой задаче