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

Unified Diff: remoting/host/chromoting_host.cc

Issue 301453003: Host extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index ef2ea19729cbfa0db13c4103320406a72189d06e..4e203c4ecb77da9892013c5d5b533111d60741ff 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -141,6 +141,10 @@ void ChromotingHost::RemoveStatusObserver(HostStatusObserver* observer) {
status_observers_.RemoveObserver(observer);
}
+void ChromotingHost::AddExtension(scoped_ptr<Extension> extension) {
+ extensions_.push_back(extension.release());
+}
+
void ChromotingHost::RejectAuthenticatingClient() {
DCHECK(authenticating_client_);
reject_authenticating_client_ = true;
@@ -319,7 +323,8 @@ void ChromotingHost::OnIncomingSession(
connection.Pass(),
desktop_environment_factory_,
max_session_duration_,
- pairing_registry_);
+ pairing_registry_,
+ &extensions_.get());
Wez 2014/05/28 01:05:59 This looks weird; does ScopedVector.get() return t
dcaiafa 2014/05/28 22:44:58 Removed.
clients_.push_back(client);
}

Powered by Google App Engine
This is Rietveld 408576698