blob: 02e013a93155dea9f3a427910465e168e7e1b473 [file] [log] [blame]
// Copyright 2020 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 "third_party/blink/renderer/platform/search_engine_utils.h"
#include "components/search_engines/search_engine_utils.h"
#include "url/gurl.h"
namespace blink {
bool IsKnownSearchEngine(const AtomicString& url) {
GURL gurl(url.GetString().Utf8());
return SearchEngineUtils::GetEngineType(gurl) > 0;
}
} // namespace blink