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

Unified Diff: remoting/host/it2me_host_user_interface.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « remoting/host/it2me_host_user_interface.h ('k') | remoting/host/local_input_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me_host_user_interface.cc
diff --git a/remoting/host/it2me_host_user_interface.cc b/remoting/host/it2me_host_user_interface.cc
index dbde578b779df585e3f0271c05122d66058c0ff9..758bafa0875458c0949511f84fcc5dc69cd130d8 100644
--- a/remoting/host/it2me_host_user_interface.cc
+++ b/remoting/host/it2me_host_user_interface.cc
@@ -44,12 +44,13 @@ void It2MeHostUserInterface::Init() {
LocalInputMonitor::Create());
}
-void It2MeHostUserInterface::InitFrom(DisconnectWindow* disconnect_window,
- ContinueWindow* continue_window,
- LocalInputMonitor* monitor) {
- disconnect_window_.reset(disconnect_window);
- continue_window_.reset(continue_window);
- local_input_monitor_.reset(monitor);
+void It2MeHostUserInterface::InitFrom(
+ scoped_ptr<DisconnectWindow> disconnect_window,
+ scoped_ptr<ContinueWindow> continue_window,
+ scoped_ptr<LocalInputMonitor> monitor) {
+ disconnect_window_ = disconnect_window.Pass();
+ continue_window_ = continue_window.Pass();
+ local_input_monitor_ = monitor.Pass();
host_->AddStatusObserver(this);
}
« no previous file with comments | « remoting/host/it2me_host_user_interface.h ('k') | remoting/host/local_input_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698