diff options
Diffstat (limited to 'remoting/client/client_context.cc')
-rw-r--r-- | remoting/client/client_context.cc | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/remoting/client/client_context.cc b/remoting/client/client_context.cc index 7e5ee7a..5f6d139 100644 --- a/remoting/client/client_context.cc +++ b/remoting/client/client_context.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -7,15 +7,13 @@ #include <string> #include "base/threading/thread.h" -#include "remoting/client/plugin/pepper_util.h" #include "remoting/jingle_glue/jingle_thread.h" namespace remoting { ClientContext::ClientContext() : main_thread_("ChromotingClientMainThread"), - decode_thread_("ChromotingClientDecodeThread"), - started_(false) { + decode_thread_("ChromotingClientDecodeThread") { } ClientContext::~ClientContext() { @@ -23,22 +21,16 @@ ClientContext::~ClientContext() { void ClientContext::Start() { // Start all the threads. - DCHECK(CurrentlyOnPluginThread()); main_thread_.Start(); decode_thread_.Start(); jingle_thread_.Start(); - started_ = true; } void ClientContext::Stop() { - DCHECK(CurrentlyOnPluginThread()); - if (started_) { - // Stop all the threads. - jingle_thread_.Stop(); - decode_thread_.Stop(); - main_thread_.Stop(); - started_ = false; - } + // Stop all the threads. + jingle_thread_.Stop(); + decode_thread_.Stop(); + main_thread_.Stop(); } JingleThread* ClientContext::jingle_thread() { |