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

@ -64,8 +64,9 @@ class DialogCallback : public CefRunFileDialogCallback {
// Send a message back to the render process with the list of file paths.
std::string response;
for (int i = 0; i < static_cast<int>(file_paths.size()); ++i) {
if (!response.empty())
if (!response.empty()) {
response += "|"; // Use a delimiter disallowed in file paths.
}
response += file_paths[i];
}
@ -100,11 +101,13 @@ class Handler : public CefMessageRouterBrowserSide::Handler {
// Only handle messages from the test URL.
const std::string& url = frame->GetURL();
if (!test_runner::IsTestURL(url, kTestUrlPath))
if (!test_runner::IsTestURL(url, kTestUrlPath)) {
return false;
}
if (!dialog_state_.get())
if (!dialog_state_.get()) {
dialog_state_ = new DialogState;
}
// Make sure we're only running one dialog at a time.
DCHECK(!dialog_state_->pending_);