mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-06 15:29:22 +01:00
da53451f97
- Configuration of OSR VSync interval is currently missing (issue #2517) - Rename VERSION to VERSION.in to fix libc++ compile error (issue #2518)
28 lines
1005 B
C++
28 lines
1005 B
C++
// Copyright 2015 The Chromium Embedded Framework 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 "libcef/renderer/extensions/extensions_dispatcher_delegate.h"
|
|
|
|
#include "base/feature_list.h"
|
|
#include "chrome/grit/renderer_resources.h"
|
|
#include "extensions/common/extension_features.h"
|
|
#include "extensions/renderer/resource_bundle_source_map.h"
|
|
|
|
namespace extensions {
|
|
|
|
CefExtensionsDispatcherDelegate::CefExtensionsDispatcherDelegate() {}
|
|
|
|
CefExtensionsDispatcherDelegate::~CefExtensionsDispatcherDelegate() {}
|
|
|
|
void CefExtensionsDispatcherDelegate::PopulateSourceMap(
|
|
extensions::ResourceBundleSourceMap* source_map) {
|
|
// These bindings are unnecessary with native bindings enabled.
|
|
if (!base::FeatureList::IsEnabled(extensions_features::kNativeCrxBindings)) {
|
|
// Custom types sources.
|
|
source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS);
|
|
}
|
|
}
|
|
|
|
} // namespace extensions
|