Bug 1321617 - Tell the CrossProcessProfilerController whether a profile is a response to a GatherProfile request or whether it was sent because the process was exiting. r=mconley

MozReview-Commit-ID: BLkaeZqtRhv
This commit is contained in:
Markus Stange
2017-04-12 16:44:31 -04:00
parent febc26d8f7
commit 85eb6f4cac
15 changed files with 32 additions and 21 deletions

View File

@@ -3261,11 +3261,12 @@ PluginModuleChromeParent::OnCrash(DWORD processID)
#endif // MOZ_CRASHREPORTER_INJECTOR
mozilla::ipc::IPCResult
PluginModuleChromeParent::RecvProfile(const nsCString& aProfile)
PluginModuleChromeParent::RecvProfile(const nsCString& aProfile,
const bool& aIsExitProfile)
{
#ifdef MOZ_GECKO_PROFILER
if (mProfilerController) {
mProfilerController->RecvProfile(aProfile);
mProfilerController->RecvProfile(aProfile, aIsExitProfile);
}
#endif
return IPC_OK();