Bug 929012 - Annotate on crash reports that content processes are turned on (r=bsmedberg)

This commit is contained in:
Bill McCloskey 2013-12-12 14:17:37 -08:00
parent c4c1d8233a
commit cc35ebc305

View File

@ -3874,6 +3874,11 @@ XREMain::XRE_mainRun()
mDirProvider.DoStartup(); mDirProvider.DoStartup();
#ifdef MOZ_CRASHREPORTER #ifdef MOZ_CRASHREPORTER
if (BrowserTabsRemote()) {
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("DOMIPCEnabled"),
NS_LITERAL_CSTRING("1"));
}
nsCString userAgentLocale; nsCString userAgentLocale;
if (NS_SUCCEEDED(Preferences::GetCString("general.useragent.locale", &userAgentLocale))) { if (NS_SUCCEEDED(Preferences::GetCString("general.useragent.locale", &userAgentLocale))) {
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("useragent_locale"), userAgentLocale); CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("useragent_locale"), userAgentLocale);