1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/browser_view_prefs.h"
7 #include "base/prefs/pref_registry_simple.h"
8 #include "chrome/common/pref_names.h"
9 #include "components/user_prefs/pref_registry_syncable.h"
13 // How long do we wait before we consider a window hung (in ms).
14 const int kDefaultPluginMessageResponseTimeout
= 25000;
16 // How frequently we check for hung plugin windows.
17 const int kDefaultHungPluginDetectFrequency
= 2000;
23 void RegisterBrowserViewLocalPrefs(PrefRegistrySimple
* registry
) {
24 registry
->RegisterIntegerPref(prefs::kPluginMessageResponseTimeout
,
25 kDefaultPluginMessageResponseTimeout
);
26 registry
->RegisterIntegerPref(prefs::kHungPluginDetectFrequency
,
27 kDefaultHungPluginDetectFrequency
);
30 void RegisterBrowserViewProfilePrefs(
31 user_prefs::PrefRegistrySyncable
* registry
) {
32 // TODO(mgiuca): Decide on this default depending on the window manager. See
33 // BrowserWindowGtk::GetCustomFramePrefDefault.
34 bool custom_frame_default
= true;
36 registry
->RegisterBooleanPref(
37 prefs::kUseCustomChromeFrame
,
39 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF
);