Commit ad308b05 authored by jongdeok.kim's avatar jongdeok.kim Committed by Commit Bot

Use chrome::Reload() instead of content::NavigationController::Reload() in RenderViewContextMenu.

This CL makes omnibox clear input text while reloading current page by context menu.

Bug: 583241
Change-Id: I8e14a781bf03e239913aac7c3d9b85a71e50fa11
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1984788Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728692}
parent 41ec94f1
...@@ -2304,8 +2304,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) { ...@@ -2304,8 +2304,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
} }
case IDC_RELOAD: case IDC_RELOAD:
embedder_web_contents_->GetController().Reload( chrome::Reload(GetBrowser(), WindowOpenDisposition::CURRENT_TAB);
content::ReloadType::NORMAL, true);
break; break;
case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment