Backed out changeset 8f489e406701 (bug 822135) for m(dt) failures CLOSED TREE

This commit is contained in:
Wes Kocher 2015-10-02 16:07:43 -07:00
Родитель 661f8d914d
Коммит c0ddea6e1b
2 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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();