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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 9829006: [chromoting] Fix crash when generating access code (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
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 693150f38a8ca47ce8115ba1b303e2be068e6692..f6e4abd5385f7886cde6bf00ebfe6708fdbf2782 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -238,8 +238,10 @@ class HostProcess {
new SignalingConnector(signal_strategy_.get()));
}
- if (!desktop_environment_.get())
- desktop_environment_ = DesktopEnvironment::Create(context_.get());
+ if (!desktop_environment_.get()) {
+ desktop_environment_ =
+ DesktopEnvironment::CreateForService(context_.get());
+ }
protocol::NetworkSettings network_settings(allow_nat_traversal_);
if (!allow_nat_traversal_) {
« remoting/host/desktop_environment.cc ('K') | « remoting/host/desktop_environment.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698