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:
@ -32,8 +32,9 @@ ExtensionTestHandler::~ExtensionTestHandler() {
|
||||
}
|
||||
|
||||
void ExtensionTestHandler::RunTest() {
|
||||
if (create_main_browser_)
|
||||
if (create_main_browser_) {
|
||||
OnAddMainBrowserResources();
|
||||
}
|
||||
|
||||
CefRefPtr<CefRequestContextHandler> rc_handler;
|
||||
if (request_context_with_handler()) {
|
||||
@ -134,8 +135,9 @@ bool ExtensionTestHandler::OnQuery(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& request,
|
||||
bool persistent,
|
||||
CefRefPtr<Callback> callback) {
|
||||
if (OnMessage(browser, request))
|
||||
if (OnMessage(browser, request)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
EXPECT_FALSE(true) << "Unexpected message: " << request.ToString();
|
||||
return false;
|
||||
@ -153,8 +155,9 @@ CefRefPtr<CefDictionaryValue> ExtensionTestHandler::CreateDefaultManifest(
|
||||
CefRefPtr<CefListValue> permissions = CefListValue::Create();
|
||||
permissions->SetSize(api_permissions.size() + 2);
|
||||
size_t idx = 0;
|
||||
for (; idx < api_permissions.size(); ++idx)
|
||||
for (; idx < api_permissions.size(); ++idx) {
|
||||
permissions->SetString(idx, api_permissions[idx]);
|
||||
}
|
||||
|
||||
// Allow access to all http/https origins.
|
||||
permissions->SetString(idx++, "http://*/*");
|
||||
|
Reference in New Issue
Block a user