blob: f70c633adc2472ac6d915b291eec27d8730339c9 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/vr/ui_support.h"
namespace vr {
UScriptCode UScriptGetScript(UChar32 codepoint, UErrorCode* err) {
return uscript_getScript(codepoint, err);
}
base::string16 FormatUrlForVr(const GURL& gurl, url::Parsed* new_parsed) {
return url_formatter::FormatUrl(
gurl,
url_formatter::kFormatUrlOmitDefaults |
url_formatter::kFormatUrlOmitHTTPS |
url_formatter::kFormatUrlOmitTrivialSubdomains,
net::UnescapeRule::NORMAL, new_parsed, nullptr, nullptr);
}
} // namespace vr