Commit 131b320f authored by divya.bansal's avatar divya.bansal Committed by Commit bot

Load any URL using Go button in chrome shell.

Currently any other link cannot be opened using
Go button in the soft keyboard unless it is in right
format with http://.These changes are to fix the format
of URL in order to open it with Go button.

BUG=429100

Review URL: https://codereview.chromium.org/693133002

Cr-Commit-Position: refs/heads/master@{#302595}
parent de7a11c0
......@@ -25,6 +25,7 @@ import org.chromium.base.CommandLine;
import org.chromium.chrome.browser.EmptyTabObserver;
import org.chromium.chrome.browser.Tab;
import org.chromium.chrome.browser.TabObserver;
import org.chromium.chrome.browser.UrlUtilities;
import org.chromium.chrome.browser.appmenu.AppMenuButtonHelper;
import org.chromium.chrome.browser.appmenu.AppMenuHandler;
import org.chromium.chrome.shell.omnibox.SuggestionPopup;
......@@ -164,7 +165,8 @@ public class ChromeShellToolbar extends LinearLayout {
// This will set |mTab| by calling showTab().
// TODO(aurimas): Factor out initial tab creation to the activity level.
Tab tab = mTabManager.openUrl(mUrlTextView.getText().toString());
Tab tab = mTabManager.openUrl(
UrlUtilities.fixupUrl(mUrlTextView.getText().toString()));
mUrlTextView.clearFocus();
setKeyboardVisibilityForUrl(false);
tab.getView().requestFocus();
......
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