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

Side by Side Diff: remoting/host/desktop_environment_fake.cc

Issue 6711033: A new authenticated connection evicts an old one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_environment_fake.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/host/desktop_environment_fake.h"
6
7 #include "base/task.h"
8
9 using remoting::protocol::InputStub;
10
11 namespace remoting {
12
13 DesktopEnvironmentFake::DesktopEnvironmentFake(Capturer* capturer,
14 InputStub* input_stub)
15 : DesktopEnvironment(capturer, input_stub) {
16 }
17
18 DesktopEnvironmentFake::~DesktopEnvironmentFake() {}
19
20 void DesktopEnvironmentFake::BeginSessionRequest(
21 const protocol::LocalLoginCredentials* credentials, Task* done) {
22 DCHECK(event_handler_);
23
24 // For unit-test, don't require a valid Unix user/password for connection.
25 event_handler_->LocalLoginSucceeded();
26
27 done->Run();
28 delete done;
29 }
30
31 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment_fake.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698