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:
@ -52,8 +52,9 @@ class CefOriginWhitelistManager {
|
||||
|
||||
// Verify that the origin entry doesn't already exist.
|
||||
for (const auto& entry : origin_list_) {
|
||||
if (entry == info)
|
||||
if (entry == info) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
origin_list_.push_back(info->Clone());
|
||||
@ -88,8 +89,9 @@ class CefOriginWhitelistManager {
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
if (!found) {
|
||||
return false;
|
||||
}
|
||||
|
||||
SendModifyCrossOriginWhitelistEntry(false, info);
|
||||
return true;
|
||||
@ -123,8 +125,9 @@ class CefOriginWhitelistManager {
|
||||
|
||||
if (!origin_list_.empty()) {
|
||||
for (const auto& entry : origin_list_) {
|
||||
if (IsMatch(source, target, entry))
|
||||
if (IsMatch(source, target, entry)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user