blob: b5493e25a56a1de784bdab58fc171d1699b73894 [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);
}
std::u16string FormatUrlForVr(const GURL& gurl, url::Parsed* new_parsed) {
return url_formatter::FormatUrl(
gurl,
url_formatter::kFormatUrlOmitDefaults |
url_formatter::kFormatUrlOmitHTTPS |
url_formatter::kFormatUrlOmitTrivialSubdomains,
base::UnescapeRule::NORMAL, new_parsed, nullptr, nullptr);
}
} // namespace vr