blob: 7305e8c168e4375434e6d5a959636d1f30864217 [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 "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