Compare commits
2 Commits
da971da381
...
5bafd32ee1
Author | SHA1 | Date |
---|---|---|
Marshall Greenblatt | 5bafd32ee1 | |
Marshall Greenblatt | 9ca230c960 |
|
@ -147,7 +147,7 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
const int32_t id_;
|
const int32_t id_;
|
||||||
raw_ptr<network::ResourceRequest> request_;
|
raw_ptr<network::ResourceRequest, DisableDanglingPtrDetection> request_;
|
||||||
const bool request_was_redirected_;
|
const bool request_was_redirected_;
|
||||||
OnBeforeRequestResultCallback callback_;
|
OnBeforeRequestResultCallback callback_;
|
||||||
CancelRequestCallback cancel_callback_;
|
CancelRequestCallback cancel_callback_;
|
||||||
|
|
|
@ -850,12 +850,6 @@ bool ClientHandler::CanDownload(CefRefPtr<CefBrowser> browser,
|
||||||
const CefString& request_method) {
|
const CefString& request_method) {
|
||||||
CEF_REQUIRE_UI_THREAD();
|
CEF_REQUIRE_UI_THREAD();
|
||||||
|
|
||||||
if (!with_controls_) {
|
|
||||||
// Block the download.
|
|
||||||
LOG(INFO) << "Blocking download";
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Allow the download.
|
// Allow the download.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue