blob: cf798ad60d7eba5028c22a75e698e19c7e0b62d7 [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/thin_webview/chrome_thin_webview_initializer.h"
#include "chrome/browser/ui/tab_helpers.h"
#include "components/permissions/permission_request_manager.h"
namespace thin_webview {
namespace android {
// static
void ChromeThinWebViewInitializer::Initialize() {
ThinWebViewInitializer::SetInstance(new ChromeThinWebViewInitializer);
}
void ChromeThinWebViewInitializer::AttachTabHelpers(
content::WebContents* web_contents) {
TabHelpers::AttachTabHelpers(web_contents);
permissions::PermissionRequestManager::FromWebContents(web_contents)
->set_web_contents_supports_permission_requests(false);
}
} // namespace android
} // namespace thin_webview