summaryrefslogtreecommitdiffstats
path: root/chrome/browser/defaults.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 04:19:19 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 04:19:19 +0000
commiteaf93d40a1230139c2e5b8b0772930f8a4aa3660 (patch)
treee9ea0f13bb94f60ae0b898e33f396540bf5d3640 /chrome/browser/defaults.cc
parentb195ea8977609c6f04c0ba1c7922b596a224e126 (diff)
downloadchromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.zip
chromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.tar.gz
chromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.tar.bz2
Makes the default for what to do on startup be restore last session on
chrome os as well as changing autocomplete edit/popup font sizes on chrome os. As suggested by Evan I've moved these options into chrome/browser/defaults.h so that we don't have a ton of #ifdefs every where. BUG=none TEST=none Review URL: http://codereview.chromium.org/155576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/defaults.cc')
-rw-r--r--chrome/browser/defaults.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/defaults.cc b/chrome/browser/defaults.cc
new file mode 100644
index 0000000..73f6996
--- /dev/null
+++ b/chrome/browser/defaults.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/defaults.h"
+
+namespace browser_defaults {
+
+#if defined(OS_CHROMEOS)
+
+const bool kForceAutocompleteEditFontSize = false;
+const int kAutocompletePopupFontSize = 7;
+const SessionStartupPref::Type kDefaultSessionStartupType =
+ SessionStartupPref::LAST;
+const bool kSuppressCrashInfoBar = true;
+const bool kRestoreAfterCrash = true;
+
+#elif defined(OS_LINUX)
+
+const bool kForceAutocompleteEditFontSize = true;
+const int kAutocompletePopupFontSize = 10;
+
+#endif
+
+#if !defined(OS_CHROMEOS)
+
+const SessionStartupPref::Type kDefaultSessionStartupType =
+ SessionStartupPref::DEFAULT;
+const bool kSuppressCrashInfoBar = false;
+const bool kRestoreAfterCrash = false;
+
+#endif
+
+} // namespace browser_defaults