mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@ -21,15 +21,17 @@ int RunMain(int argc, char* argv[]) {
|
||||
#if defined(CEF_USE_SANDBOX)
|
||||
// Initialize the macOS sandbox for this helper process.
|
||||
CefScopedSandboxContext sandbox_context;
|
||||
if (!sandbox_context.Initialize(argc, argv))
|
||||
if (!sandbox_context.Initialize(argc, argv)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Load the CEF framework library at runtime instead of linking directly
|
||||
// as required by the macOS sandbox implementation.
|
||||
CefScopedLibraryLoader library_loader;
|
||||
if (!library_loader.LoadInHelper())
|
||||
if (!library_loader.LoadInHelper()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
CefMainArgs main_args(argc, argv);
|
||||
|
||||
@ -40,10 +42,11 @@ int RunMain(int argc, char* argv[]) {
|
||||
// Create a ClientApp of the correct type.
|
||||
CefRefPtr<CefApp> app;
|
||||
ClientApp::ProcessType process_type = ClientApp::GetProcessType(command_line);
|
||||
if (process_type == ClientApp::RendererProcess)
|
||||
if (process_type == ClientApp::RendererProcess) {
|
||||
app = new ClientAppRenderer();
|
||||
else if (process_type == ClientApp::OtherProcess)
|
||||
} else if (process_type == ClientApp::OtherProcess) {
|
||||
app = new ClientAppOther();
|
||||
}
|
||||
|
||||
// Execute the secondary process.
|
||||
return CefExecuteProcess(main_args, app, nullptr);
|
||||
|
Reference in New Issue
Block a user