Change UrlUtilities.getOriginForDisplay()
commitd1a668fa2871b243fe669f705aa060ea32e341aa
authordfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 23 Sep 2013 23:48:19 +0000 (23 23:48 +0000)
committerdfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 23 Sep 2013 23:48:19 +0000 (23 23:48 +0000)
tree82d2780c1127c3843cf81220fda206568c84cdcb
parentdec6812fe9a78eb3473c89f9d203ee76ec80442c
Change UrlUtilities.getOriginForDisplay()

* Make the function return the original URL instead of null.
* Allow chopping off the scheme.

NOTRY=true
TEST=UrlUtilities
BUG=276709

Review URL: https://chromiumcodereview.appspot.com/23922010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224836 0039d316-1c4b-4281-b951-d872f2087c98
chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java
chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java