blob: c0f2240f0f9412cb4b6788e916988baa0c3c1e64 [file] [log] [blame]
// Copyright 2021 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/web_applications/preinstalled_web_apps/google_chat.h"
#include "chrome/browser/web_applications/web_app_id_constants.h"
namespace web_app {
ExternalInstallOptions GetConfigForGoogleChat() {
ExternalInstallOptions options(
/*install_url=*/GURL(
"https://mail.google.com/chat/download?usp=chrome_default"),
/*user_display_mode=*/DisplayMode::kStandalone,
/*install_source=*/ExternalInstallSource::kExternalDefault);
// Exclude managed users until we have a way for admins to block the app.
options.user_type_allowlist = {"unmanaged"};
options.only_for_new_users = true;
options.expected_app_id = kGoogleChatAppId;
return options;
}
} // namespace web_app