1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/web/public/url_util.h"
9 GURL
GURLByRemovingRefFromGURL(const GURL
& full_url
) {
10 if (!full_url
.has_ref())
13 GURL::Replacements replacements
;
14 replacements
.ClearRef();
15 return full_url
.ReplaceComponents(replacements
);