OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/renderer_context_menu/render_view_context_menu_base.h" | 5 #include "components/renderer_context_menu/render_view_context_menu_base.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
385 | 385 |
386 if (params_.link_url == url && | 386 if (params_.link_url == url && |
387 disposition != WindowOpenDisposition::OFF_THE_RECORD) | 387 disposition != WindowOpenDisposition::OFF_THE_RECORD) |
388 params_.custom_context.link_followed = url; | 388 params_.custom_context.link_followed = url; |
389 | 389 |
390 OpenURLParams open_url_params(url, referrer, disposition, transition, false, | 390 OpenURLParams open_url_params(url, referrer, disposition, transition, false, |
391 started_from_context_menu); | 391 started_from_context_menu); |
392 if (!extra_headers.empty()) | 392 if (!extra_headers.empty()) |
393 open_url_params.extra_headers = extra_headers; | 393 open_url_params.extra_headers = extra_headers; |
394 | 394 |
395 WebContents* new_contents = source_web_contents_->OpenURL(open_url_params); | 395 open_url_params.process_id = render_process_id_; |
396 if (!new_contents) | 396 open_url_params.frame_id = render_frame_id_; |
397 return; | |
398 | 397 |
399 NotifyURLOpened(url, new_contents); | 398 source_web_contents_->OpenURL(open_url_params); |
nasko
2017/02/14 00:10:22
Since there are no more calls to this, let's remov
Patrick Noland
2017/02/14 01:16:16
Done.
| |
400 } | 399 } |
401 | 400 |
402 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const { | 401 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const { |
403 return IsCustomItemCheckedInternal(params_.custom_items, id); | 402 return IsCustomItemCheckedInternal(params_.custom_items, id); |
404 } | 403 } |
405 | 404 |
406 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const { | 405 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const { |
407 return IsCustomItemEnabledInternal(params_.custom_items, id); | 406 return IsCustomItemEnabledInternal(params_.custom_items, id); |
408 } | 407 } |
OLD | NEW |