| Index: content/browser/cross_site_transfer_browsertest.cc
|
| diff --git a/content/browser/cross_site_transfer_browsertest.cc b/content/browser/cross_site_transfer_browsertest.cc
|
| index ce5701133070e5d672afdc3d5a0debe97eade275..560547ddd91016d53a4ae89f9230f44a99330f0c 100644
|
| --- a/content/browser/cross_site_transfer_browsertest.cc
|
| +++ b/content/browser/cross_site_transfer_browsertest.cc
|
| @@ -144,22 +144,9 @@ class NoTransferRequestDelegate : public WebContentsDelegate {
|
| public:
|
| NoTransferRequestDelegate() {}
|
|
|
| - WebContents* OpenURLFromTab(WebContents* source,
|
| - const OpenURLParams& params) override {
|
| - bool is_transfer =
|
| - (params.transferred_global_request_id != GlobalRequestID());
|
| - if (is_transfer)
|
| - return nullptr;
|
| - NavigationController::LoadURLParams load_url_params(params.url);
|
| - load_url_params.referrer = params.referrer;
|
| - load_url_params.frame_tree_node_id = params.frame_tree_node_id;
|
| - load_url_params.transition_type = params.transition;
|
| - load_url_params.extra_headers = params.extra_headers;
|
| - load_url_params.should_replace_current_entry =
|
| - params.should_replace_current_entry;
|
| - load_url_params.is_renderer_initiated = true;
|
| - source->GetController().LoadURLWithParams(load_url_params);
|
| - return source;
|
| + bool ShouldTransferNavigation() override {
|
| + // Intentionally cancel the transfer.
|
| + return false;
|
| }
|
|
|
| private:
|
|
|