mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefsimple: Minor code and docs cleanup
This commit is contained in:
@@ -151,11 +151,9 @@ void SimpleHandler::CloseAllBrowsers(bool force_close) {
|
||||
|
||||
// static
|
||||
bool SimpleHandler::IsChromeRuntimeEnabled() {
|
||||
static int value = -1;
|
||||
if (value == -1) {
|
||||
CefRefPtr<CefCommandLine> command_line =
|
||||
CefCommandLine::GetGlobalCommandLine();
|
||||
value = command_line->HasSwitch("enable-chrome-runtime") ? 1 : 0;
|
||||
}
|
||||
return value == 1;
|
||||
static bool enabled = []() {
|
||||
return CefCommandLine::GetGlobalCommandLine()->HasSwitch(
|
||||
"enable-chrome-runtime");
|
||||
}();
|
||||
return enabled;
|
||||
}
|
||||
|
Reference in New Issue
Block a user