mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix clang-tidy warnings (see #3632)
This commit is contained in:
@@ -130,7 +130,9 @@ class CefBrowserInfo : public base::RefCountedThreadSafe<CefBrowserInfo> {
|
|||||||
friend class CefBrowserInfo;
|
friend class CefBrowserInfo;
|
||||||
friend class base::RefCounted<NavigationLock>;
|
friend class base::RefCounted<NavigationLock>;
|
||||||
|
|
||||||
|
// All usage is via friend declaration. NOLINTNEXTLINE
|
||||||
NavigationLock();
|
NavigationLock();
|
||||||
|
// All usage is via friend declaration. NOLINTNEXTLINE
|
||||||
~NavigationLock();
|
~NavigationLock();
|
||||||
|
|
||||||
base::OnceClosure pending_action_;
|
base::OnceClosure pending_action_;
|
||||||
|
@@ -33,7 +33,7 @@ class CefContextMenuObserver : public RenderViewContextMenuObserver,
|
|||||||
const_cast<content::ContextMenuParams*>(&context_menu_->params()));
|
const_cast<content::ContextMenuParams*>(&context_menu_->params()));
|
||||||
model_ = new CefSimpleMenuModelImpl(
|
model_ = new CefSimpleMenuModelImpl(
|
||||||
const_cast<ui::SimpleMenuModel*>(&context_menu_->menu_model()),
|
const_cast<ui::SimpleMenuModel*>(&context_menu_->menu_model()),
|
||||||
context_menu_, this, /*is_owned=*/false, /*is_popup=*/false);
|
context_menu_, this, /*is_owned=*/false, /*is_submenu=*/false);
|
||||||
|
|
||||||
handler_->OnBeforeContextMenu(browser_, GetFrame(), params_, model_);
|
handler_->OnBeforeContextMenu(browser_, GetFrame(), params_, model_);
|
||||||
}
|
}
|
||||||
|
@@ -298,7 +298,8 @@ void SaveCookies(const CefBrowserContext::Getter& browser_context_getter,
|
|||||||
net::CookieInclusionStatus returned_status;
|
net::CookieInclusionStatus returned_status;
|
||||||
std::unique_ptr<net::CanonicalCookie> cookie = net::CanonicalCookie::Create(
|
std::unique_ptr<net::CanonicalCookie> cookie = net::CanonicalCookie::Create(
|
||||||
request.url, cookie_string, base::Time::Now(),
|
request.url, cookie_string, base::Time::Now(),
|
||||||
absl::make_optional(response_date), /*partition_key=*/absl::nullopt,
|
absl::make_optional(response_date),
|
||||||
|
/*cookie_partition_key=*/absl::nullopt,
|
||||||
/*block_truncated=*/true, &returned_status);
|
/*block_truncated=*/true, &returned_status);
|
||||||
if (!returned_status.IsInclude()) {
|
if (!returned_status.IsInclude()) {
|
||||||
continue;
|
continue;
|
||||||
|
@@ -824,6 +824,7 @@ void InterceptedRequest::InterceptResponseReceived(
|
|||||||
|
|
||||||
current_response_->encoded_data_length = headers->raw_headers().length();
|
current_response_->encoded_data_length = headers->raw_headers().length();
|
||||||
current_response_->content_length = 0;
|
current_response_->content_length = 0;
|
||||||
|
// Avoid incorrect replacement of 0 with nullptr. NOLINTNEXTLINE
|
||||||
current_response_->encoded_body_length = 0;
|
current_response_->encoded_body_length = 0;
|
||||||
|
|
||||||
std::string origin;
|
std::string origin;
|
||||||
@@ -981,6 +982,7 @@ net::RedirectInfo InterceptedRequest::MakeRedirectResponseAndInfo(
|
|||||||
|
|
||||||
// Clear the Content-Length values.
|
// Clear the Content-Length values.
|
||||||
current_response_->content_length = 0;
|
current_response_->content_length = 0;
|
||||||
|
// Avoid incorrect replacement of 0 with nullptr. NOLINTNEXTLINE
|
||||||
current_response_->encoded_body_length = 0;
|
current_response_->encoded_body_length = 0;
|
||||||
current_response_->headers->RemoveHeader(
|
current_response_->headers->RemoveHeader(
|
||||||
net::HttpRequestHeaders::kContentLength);
|
net::HttpRequestHeaders::kContentLength);
|
||||||
|
@@ -1694,7 +1694,7 @@ class ParentOrderMainTestHandler : public OrderMainTestHandler {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void RunOrderMainPopupTest(bool cross_origin) {
|
void RunOrderMainPopupTest(bool cross_origin) {
|
||||||
TestHandler::CompletionState completion_state(/*count=*/2);
|
TestHandler::CompletionState completion_state(/*total=*/2);
|
||||||
TestHandler::Collection collection(&completion_state);
|
TestHandler::Collection collection(&completion_state);
|
||||||
|
|
||||||
CefRefPtr<PopupOrderMainTestHandler> popup_handler =
|
CefRefPtr<PopupOrderMainTestHandler> popup_handler =
|
||||||
|
Reference in New Issue
Block a user