| Index: chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc
|
| diff --git a/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc b/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc
|
| index a9a7e75054a5be4a01e272d7a39d3cff8e27e25c..7de00c97f531449b7a6081223f0245fa12f69c20 100644
|
| --- a/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc
|
| +++ b/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc
|
| @@ -11,10 +11,7 @@
|
| #include "base/metrics/user_metrics.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/ui/app_list/search/answer_card/answer_card_result.h"
|
| -#include "chrome/browser/ui/browser_navigator.h"
|
| -#include "chrome/browser/ui/browser_navigator_params.h"
|
| #include "content/public/browser/navigation_handle.h"
|
| -#include "content/public/browser/page_navigator.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/http/http_status_code.h"
|
| #include "ui/app_list/app_list_features.h"
|
| @@ -109,30 +106,6 @@ void AnswerCardSearchProvider::UpdatePreferredSize(const gfx::Size& pref_size) {
|
| }
|
| }
|
|
|
| -content::WebContents* AnswerCardSearchProvider::OpenURLFromTab(
|
| - const content::OpenURLParams& params) {
|
| - // Open the user-clicked link in the browser taking into account the requested
|
| - // disposition.
|
| - chrome::NavigateParams new_tab_params(profile_, params.url,
|
| - params.transition);
|
| -
|
| - new_tab_params.disposition = params.disposition;
|
| -
|
| - if (params.disposition == WindowOpenDisposition::NEW_BACKGROUND_TAB) {
|
| - // When the user asks to open a link as a background tab, we show an
|
| - // activated window with the new activated tab after the user closes the
|
| - // launcher. So it's "background" relative to the launcher itself.
|
| - new_tab_params.disposition = WindowOpenDisposition::NEW_FOREGROUND_TAB;
|
| - new_tab_params.window_action = chrome::NavigateParams::SHOW_WINDOW_INACTIVE;
|
| - }
|
| -
|
| - chrome::Navigate(&new_tab_params);
|
| -
|
| - base::RecordAction(base::UserMetricsAction("SearchAnswer_OpenedUrl"));
|
| -
|
| - return new_tab_params.target_contents;
|
| -}
|
| -
|
| void AnswerCardSearchProvider::DidFinishNavigation(
|
| content::NavigationHandle* navigation_handle) {
|
| if (navigation_handle->GetURL() != current_request_url_) {
|
|
|