Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@ -14,15 +14,17 @@ namespace cef {
// static
base::StringPiece ChromeGeneratedSchemas::Get(const std::string& name) {
if (!ChromeFunctionRegistry::IsSupported(name))
if (!ChromeFunctionRegistry::IsSupported(name)) {
return base::StringPiece();
}
return extensions::api::ChromeGeneratedSchemas::Get(name);
}
// static
bool ChromeGeneratedSchemas::IsGenerated(std::string name) {
if (!ChromeFunctionRegistry::IsSupported(name))
if (!ChromeFunctionRegistry::IsSupported(name)) {
return false;
}
return extensions::api::ChromeGeneratedSchemas::IsGenerated(name);
}

View File

@ -7,7 +7,7 @@
#include "libcef/common/extensions/chrome_generated_schemas.h"
#include "cef/grit/cef_resources.h"
//#include "cef/libcef/common/extensions/api/generated_schemas.h"
// #include "cef/libcef/common/extensions/api/generated_schemas.h"
#include "cef/libcef/common/extensions/api/cef_api_features.h"
#include "cef/libcef/common/extensions/api/cef_manifest_features.h"
#include "cef/libcef/common/extensions/api/cef_permission_features.h"
@ -52,8 +52,9 @@ bool CefExtensionsAPIProvider::IsAPISchemaGenerated(const std::string& name) {
// return true;
// Chrome APIs whitelisted by CEF.
if (api::cef::ChromeGeneratedSchemas::IsGenerated(name))
if (api::cef::ChromeGeneratedSchemas::IsGenerated(name)) {
return true;
}
return false;
}
@ -67,8 +68,9 @@ base::StringPiece CefExtensionsAPIProvider::GetAPISchema(
// return api::cef::CefGeneratedSchemas::Get(name);
// Chrome APIs whitelisted by CEF.
if (api::cef::ChromeGeneratedSchemas::IsGenerated(name))
if (api::cef::ChromeGeneratedSchemas::IsGenerated(name)) {
return api::cef::ChromeGeneratedSchemas::Get(name);
}
return base::StringPiece();
}

View File

@ -29,8 +29,9 @@ bool PrintPreviewEnabled() {
// Not currently supported on macOS.
return false;
#else
if (!PdfExtensionEnabled())
if (!PdfExtensionEnabled()) {
return false;
}
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisablePrintPreview)) {