diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 21:52:44 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 21:52:44 +0000 |
commit | fc7611b38ad901cc9babc4defc7214ca601883e2 (patch) | |
tree | 14e572b2aee6c487c13962b9386f8d629ca46590 /chrome/browser/browser_prefs.cc | |
parent | 0170caac6453b9d0a946fea8e22d3e48a82119f1 (diff) | |
download | chromium_src-fc7611b38ad901cc9babc4defc7214ca601883e2.zip chromium_src-fc7611b38ad901cc9babc4defc7214ca601883e2.tar.gz chromium_src-fc7611b38ad901cc9babc4defc7214ca601883e2.tar.bz2 |
Linux: Autodetect whether the custom frame should be used.
Listing a bunch of strings from WMs' source sucks,
but I can't think of any way to detect tiling WMs that
don't support the EWMH (see the bug and the comment in
this CL), so this seems safer.
Tested with the following:
- wiped out related prefs and started chrome under ion3;
custom frame not used
- quit and started under metacity; custom frame *was* used
- toggled custom frame pref off and restarted under
metacity again; custom frame not used
- toggled it back on and restarted under ion3; custom frame
was used
BUG=15861
TEST=see above
Review URL: http://codereview.chromium.org/160374
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_prefs.cc')
-rw-r--r-- | chrome/browser/browser_prefs.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/browser_prefs.cc b/chrome/browser/browser_prefs.cc index 57175d6..74e9b65 100644 --- a/chrome/browser/browser_prefs.cc +++ b/chrome/browser/browser_prefs.cc @@ -30,7 +30,7 @@ #include "chrome/browser/views/frame/browser_view.h" #endif -#if defined(TOOLKIT_VIEWS) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) #include "chrome/browser/task_manager.h" #endif @@ -38,6 +38,10 @@ #include "chrome/browser/views/keyword_editor_view.h" #endif +#if defined(TOOLKIT_GTK) +#include "chrome/browser/gtk/browser_window_gtk.h" +#endif + namespace browser { void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { @@ -56,7 +60,7 @@ void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { #if defined(TOOLKIT_VIEWS) // TODO(port): whittle this down as we port BrowserView::RegisterBrowserViewPrefs(local_state); #endif -#if defined(TOOLKIT_VIEWS) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) TaskManager::RegisterPrefs(local_state); #endif @@ -74,6 +78,9 @@ void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { NewTabUI::RegisterUserPrefs(user_prefs); BlockedPopupContainer::RegisterUserPrefs(user_prefs); DevToolsManager::RegisterUserPrefs(user_prefs); +#if defined(TOOLKIT_GTK) + BrowserWindowGtk::RegisterUserPrefs(user_prefs); +#endif } } // namespace browser |