Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5430)

Unified Diff: chrome/browser/ui/browser_view_prefs.cc

Issue 174223004: linux_aura: Default to system titlebars under some window managers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_view_prefs.cc
diff --git a/chrome/browser/ui/browser_view_prefs.cc b/chrome/browser/ui/browser_view_prefs.cc
index 8f89773243e8ad97ac74c837292cce5c27cb6f1b..5e98fcfa83f55e433532c4d38ab36cca0f02f3db 100644
--- a/chrome/browser/ui/browser_view_prefs.cc
+++ b/chrome/browser/ui/browser_view_prefs.cc
@@ -8,6 +8,10 @@
#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 {
// How long do we wait before we consider a window hung (in ms).
@@ -29,9 +33,10 @@ void RegisterBrowserViewLocalPrefs(PrefRegistrySimple* registry) {
void RegisterBrowserViewProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
- // TODO(mgiuca): Decide on this default depending on the window manager. See
- // BrowserWindowGtk::GetCustomFramePrefDefault.
- bool custom_frame_default = true;
+ bool custom_frame_default = false;
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+ custom_frame_default = ui::GetCustomFramePrefDefault();
+#endif
registry->RegisterBooleanPref(
prefs::kUseCustomChromeFrame,
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698