blob: 21cd65d26599829dd031908560cb1e0dd5923de5 [file] [log] [blame]
// Copyright 2018 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.
#ifndef CHROME_BROWSER_UI_MANAGED_UI_H_
#define CHROME_BROWSER_UI_MANAGED_UI_H_
#include "base/strings/string16.h"
#include "build/chromeos_buildflags.h"
class Profile;
namespace chrome {
// Returns true if a 'Managed by your organization' message should appear in
// Chrome's App Menu, and on the following chrome:// pages:
// - chrome://bookmarks
// - chrome://downloads
// - chrome://extensions
// - chrome://history
// - chrome://settings
//
// N.B.: This is independent of Chrome OS's system tray message for enterprise
// users.
bool ShouldDisplayManagedUi(Profile* profile);
// The label for the App Menu item for Managed UI.
base::string16 GetManagedUiMenuItemLabel(Profile* profile);
// The label for the WebUI footnote for Managed UI indicating that the browser
// is managed. These strings contain HTML for an <a> element.
base::string16 GetManagedUiWebUILabel(Profile* profile);
#if BUILDFLAG(IS_CHROMEOS_ASH)
// The label for the WebUI footnote for Managed UI indicating that the device
// is mananged. These strings contain HTML for an <a> element.
base::string16 GetDeviceManagedUiWebUILabel();
#endif
} // namespace chrome
#endif // CHROME_BROWSER_UI_MANAGED_UI_H_