mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1001137 - Use proper pref for configuring fifo directory. r=froydnj
--HG-- extra : rebase_source : 6d45f4b6b9d86ab6718d07a4a7bfe83454d095fd
This commit is contained in:
parent
6c6647cf1a
commit
0793562b4e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user