Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: components/chooser_controller/chooser_controller.cc

Issue 1984923002: Refactor ChooserBubbleController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/chooser_controller/chooser_controller.h ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1d2c3c70118abbef11d99fe3769bbe67e43e2c6c
--- /dev/null
+++ b/components/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/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();
+}
« no previous file with comments | « components/chooser_controller/chooser_controller.h ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698