OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 |
| 5 #include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h" |
| 6 |
| 7 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/browser_finder.h" |
| 9 #include "components/chooser_controller/chooser_controller.h" |
| 10 #include "content/public/browser/web_contents.h" |
| 11 |
| 12 ChooserBubbleDelegate::ChooserBubbleDelegate( |
| 13 content::RenderFrameHost* owner, |
| 14 std::unique_ptr<ChooserController> chooser_controller) |
| 15 : owning_frame_(owner), |
| 16 browser_(chrome::FindBrowserWithWebContents( |
| 17 content::WebContents::FromRenderFrameHost(owner))), |
| 18 chooser_controller_(std::move(chooser_controller)) {} |
| 19 |
| 20 ChooserBubbleDelegate::~ChooserBubbleDelegate() {} |
| 21 |
| 22 std::string ChooserBubbleDelegate::GetName() const { |
| 23 return "ChooserBubble"; |
| 24 } |
| 25 |
| 26 const content::RenderFrameHost* ChooserBubbleDelegate::OwningFrame() const { |
| 27 return owning_frame_; |
| 28 } |
OLD | NEW |