Compare commits
2 Commits
4023fea237
...
cbbca050e0
Author | SHA1 | Date |
---|---|---|
Marshall Greenblatt | cbbca050e0 | |
Marshall Greenblatt | 69fbadd0bc |
|
@ -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_;
|
||||||
|
|
|
@ -822,12 +822,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