mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Fix error: suggest explicit braces to avoid ambiguous ‘else’ [-Werror=dangling-else] with gcc 7.1
This commit is contained in:
committed by
Marshall Greenblatt
parent
76eb49196e
commit
5b12134a45
@@ -558,8 +558,9 @@ class PluginTestHandler : public RoutingTestHandler,
|
||||
EXPECT_TRUE(got_on_load_end_pdf1_);
|
||||
EXPECT_TRUE(got_on_load_end_pdf2_);
|
||||
|
||||
if (HasRequestContextHandler())
|
||||
if (HasRequestContextHandler()) {
|
||||
EXPECT_TRUE(got_on_before_plugin_load_pdf_);
|
||||
}
|
||||
}
|
||||
} else if (url_ == kPdfDirectUrl) {
|
||||
// Load the PDF file directly.
|
||||
@@ -567,8 +568,9 @@ class PluginTestHandler : public RoutingTestHandler,
|
||||
EXPECT_TRUE(got_on_load_end_pdf1_);
|
||||
EXPECT_FALSE(got_on_load_end_pdf2_);
|
||||
|
||||
if (HasRequestContextHandler())
|
||||
if (HasRequestContextHandler()) {
|
||||
EXPECT_TRUE(got_on_before_plugin_load_pdf_);
|
||||
}
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
|
Reference in New Issue
Block a user