| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 "components/chooser_controller/chooser_controller.h" | |
| 6 | |
| 7 #include "content/public/browser/render_frame_host.h" | |
| 8 #include "url/origin.h" | |
| 9 | |
| 10 ChooserController::ChooserController(content::RenderFrameHost* owner) | |
| 11 : owning_frame_(owner) {} | |
| 12 | |
| 13 ChooserController::~ChooserController() {} | |
| 14 | |
| 15 url::Origin ChooserController::GetOrigin() const { | |
| 16 return owning_frame_ ? owning_frame_->GetLastCommittedOrigin() | |
| 17 : url::Origin(); | |
| 18 } | |
| OLD | NEW |