blob: 7bacc308e52f413f18e63a38f9eac864ed769ba0 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_MANAGED_TOOLBAR_PIN_MODE_H_
#define CHROME_BROWSER_EXTENSIONS_MANAGED_TOOLBAR_PIN_MODE_H_
#include "extensions/buildflags/buildflags.h"
static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
namespace extensions {
// Policy-based behavior for "Pin extension to toolbar" from the extensions
// menu, default is kDefaultUnpinned.
// * kDefaultUnpinned: Extension starts unpinned, but the user can still pin
// it afterwards.
// * kDefaultPinned: Extension starts pinned, but the user can still unpin it
// afterwards.
// * kForcePinned: Extension starts pinned to the toolbar, and the user
// cannot unpin it.
enum class ManagedToolbarPinMode {
kDefaultUnpinned = 0,
kDefaultPinned,
kForcePinned,
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_MANAGED_TOOLBAR_PIN_MODE_H_