permission_prompt_impl.cc 644 B

123456789101112131415161718
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/permissions/permission_prompt.h"
  5. #include "components/permissions/permissions_client.h"
  6. namespace permissions {
  7. // TODO(crbug.com/1025609): Move the desktop permission prompt implementations
  8. // into //components/permissions.
  9. std::unique_ptr<PermissionPrompt> PermissionPrompt::Create(
  10. content::WebContents* web_contents,
  11. Delegate* delegate) {
  12. return PermissionsClient::Get()->CreatePrompt(web_contents, delegate);
  13. }
  14. } // namespace permissions