This source file includes following definitions.
- RegisterBrowserViewLocalPrefs
- RegisterBrowserViewProfilePrefs
#include "chrome/browser/ui/browser_view_prefs.h"
#include "base/prefs/pref_registry_simple.h"
#include "chrome/common/pref_names.h"
#include "components/user_prefs/pref_registry_syncable.h"
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
#include "ui/base/x/x11_util.h"
#endif
namespace {
const int kDefaultPluginMessageResponseTimeout = 25000;
const int kDefaultHungPluginDetectFrequency = 2000;
}
namespace chrome {
void RegisterBrowserViewLocalPrefs(PrefRegistrySimple* registry) {
registry->RegisterIntegerPref(prefs::kPluginMessageResponseTimeout,
kDefaultPluginMessageResponseTimeout);
registry->RegisterIntegerPref(prefs::kHungPluginDetectFrequency,
kDefaultHungPluginDetectFrequency);
}
void RegisterBrowserViewProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
bool custom_frame_default = false;
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
custom_frame_default = ui::GetCustomFramePrefDefault();
#endif
registry->RegisterBooleanPref(
prefs::kUseCustomChromeFrame,
custom_frame_default,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
}