Use GURL::Replacements to trim query and ref from URL


BUG=108648
TEST=no


Review URL: http://codereview.chromium.org/9120011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116960 0039d316-1c4b-4281-b951-d872f2087c98