blob: 1cab1e89455d8e70295175d041816f69eede2ed9 [file] [log] [blame]
// Copyright 2020 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 EXTENSIONS_BROWSER_UI_UTIL_H_
#define EXTENSIONS_BROWSER_UI_UTIL_H_
#include "extensions/common/manifest.h"
namespace extensions {
class Extension;
namespace ui_util {
// Returns true if an extension with the given |type| and |location| should be
// displayed in the extension settings page (e.g. chrome://extensions).
bool ShouldDisplayInExtensionSettings(Manifest::Type type,
Manifest::Location location);
// Convenience method of the above taking an Extension object.
bool ShouldDisplayInExtensionSettings(const Extension& extension);
} // namespace ui_util
} // namespace extensions
#endif // EXTENSIONS_BROWSER_UI_UTIL_H_