OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
Reilly Grant (use Gerrit)
2016/05/17 17:19:00
2016
juncai
2016/05/17 20:09:25
Done.
| |
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 | |
9 ChooserController::ChooserController(content::RenderFrameHost* owner) | |
10 : owning_frame_(owner) {} | |
11 | |
12 ChooserController::~ChooserController() {} | |
13 | |
14 url::Origin ChooserController::GetOrigin() const { | |
15 return const_cast<content::RenderFrameHost*>(owning_frame_) | |
16 ->GetLastCommittedOrigin(); | |
17 } | |
OLD | NEW |