Bug 1001137 - Use proper pref for configuring fifo directory. r=froydnj

--HG--
extra : rebase_source : 6d45f4b6b9d86ab6718d07a4a7bfe83454d095fd
This commit is contained in:
Eric Rahm 2014-04-25 13:53:01 -07:00
parent 6c6647cf1a
commit 0793562b4e

View File

@ -242,7 +242,8 @@ FifoWatcher::GetSingleton()
{
if (!sSingleton) {
nsAutoCString dirPath;
Preferences::GetCString(kPrefName, &dirPath);
Preferences::GetCString(
"memory_info_dumper.watch_fifo.directory", &dirPath);
sSingleton = new FifoWatcher(dirPath);
sSingleton->Init();
ClearOnShutdown(&sSingleton);
@ -261,7 +262,7 @@ FifoWatcher::MaybeCreate()
return false;
}
if (!Preferences::GetBool("memory_info_dumper.watch_fifo.enabled", false)) {
if (!Preferences::GetBool(kPrefName, false)) {
LOG("Fifo watcher disabled via pref.");
return false;
}