Mac: Fix build error and NetworkService startup assertion (see issue #2622).

Fixes FATAL:os_crypt_mac.mm(103)] Check failed: g_key_creation_util
This commit is contained in:
Marshall Greenblatt
2019-04-29 11:31:13 -04:00
parent 4e089766a5
commit 9fd6c8a1ee
3 changed files with 23 additions and 0 deletions

View File

@@ -52,6 +52,10 @@
#include "extensions/buildflags/buildflags.h"
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_MACOSX)
#include "components/os_crypt/os_crypt.h"
#endif
namespace browser_prefs {
const char kUserPrefsFileName[] = "UserPrefs.json";
@@ -156,6 +160,9 @@ std::unique_ptr<PrefService> CreatePrefService(Profile* profile,
CefURLRequestContextGetter::RegisterPrefs(registry.get());
} else if (!profile) {
SystemNetworkContextManager::RegisterPrefs(registry.get());
#if defined(OS_MACOSX)
OSCrypt::RegisterLocalPrefs(registry.get());
#endif
}
// Browser UI preferences.