| Index: components/ui/chooser_controller/chooser_controller.cc
|
| diff --git a/components/ui/chooser_controller/chooser_controller.cc b/components/ui/chooser_controller/chooser_controller.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5a8b27a857c05d374b82e2b857b5da02856fdae
|
| --- /dev/null
|
| +++ b/components/ui/chooser_controller/chooser_controller.cc
|
| @@ -0,0 +1,17 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/ui/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();
|
| +}
|
|
|