chromium/chrome/browser/defaults.cc

// Copyright 2012 The Chromium Authors
// 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"

#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"

namespace browser_defaults {

#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_MAC)
const bool kBrowserAliveWithNoWindows = true;
const bool kShowExitMenuItem = false;
#elif BUILDFLAG(IS_CHROMEOS_LACROS)
// Note: Lacros can get kicked out of memory when the last window closes.
const bool kBrowserAliveWithNoWindows = false;
const bool kShowExitMenuItem = false;
#else
const bool kBrowserAliveWithNoWindows =;
const bool kShowExitMenuItem =;
#endif

#if BUILDFLAG(IS_CHROMEOS_ASH)
const bool kShowUpgradeMenuItem = false;
const bool kShowImportOnBookmarkBar = false;
const bool kAlwaysOpenIncognitoBrowserIfStartedWithIncognitoSwitch = true;
#else
const bool kShowUpgradeMenuItem =;
const bool kShowImportOnBookmarkBar =;
const bool kAlwaysOpenIncognitoBrowserIfStartedWithIncognitoSwitch =;
#endif

#if BUILDFLAG(IS_CHROMEOS)
const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
#else
const bool kAlwaysCreateTabbedBrowserOnSessionRestore =;
#endif

#if BUILDFLAG(IS_CHROMEOS_ASH)
const bool kShowHelpMenuItemIcon = true;
#else
const bool kShowHelpMenuItemIcon =;
#endif

#if BUILDFLAG(IS_LINUX)
const bool kScrollEventChangesTab =;
#else
const bool kScrollEventChangesTab = false;
#endif

bool bookmarks_enabled =;

}  // namespace browser_defaults