Chromium Code Reviews| Index: components/chooser_controller/chooser_controller.cc |
| diff --git a/components/chooser_controller/chooser_controller.cc b/components/chooser_controller/chooser_controller.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..805d8a77c1930e47e159ca4e7bb76ed6a95b4a6d |
| --- /dev/null |
| +++ b/components/chooser_controller/chooser_controller.cc |
| @@ -0,0 +1,17 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "components/chooser_controller/chooser_controller.h" |
| + |
| +#include "content/public/browser/render_frame_host.h" |
| + |
| +ChooserController::ChooserController(content::RenderFrameHost* owner) |
| + : owning_frame_(owner) {} |
| + |
| +ChooserController::~ChooserController() {} |
| + |
| +url::Origin ChooserController::GetOrigin() const { |
| + return const_cast<content::RenderFrameHost*>(owning_frame_) |
| + ->GetLastCommittedOrigin(); |
| +} |