blob: f78559784caeb3e089ec4725bbfb94fd7eeacc5c [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/base/is_google_email.h"
#include "base/strings/string_util.h"
namespace remoting {
namespace {
// The default email domain for Googlers.
constexpr char kGooglerEmailDomain[] = "@google.com";
} // namespace
bool IsGoogleEmail(const std::string& email_address) {
return base::EndsWith(email_address, kGooglerEmailDomain,
base::CompareCase::INSENSITIVE_ASCII);
}
} // namespace remoting