blob: 3125a5473c2bacdd7ad0ad6f2e50605559978100 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "components/omnibox/browser/fake_tab_matcher.h"
bool FakeTabMatcher::IsTabOpenWithURL(const GURL& url,
const AutocompleteInput* input) const {
return !substring_to_match_.empty() &&
url.spec().find(substring_to_match_) != std::string::npos;
}