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

Side by Side Diff: chrome/service/remoting/chromoting_host_manager.cc

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/remoting/chromoting_host_manager.h" 5 #include "chrome/service/remoting/chromoting_host_manager.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/common/chrome_paths.h" 8 #include "chrome/common/chrome_paths.h"
9 #include "chrome/common/guid.h" 9 #include "chrome/common/guid.h"
10 #include "chrome/common/remoting/chromoting_host_info.h" 10 #include "chrome/common/remoting/chromoting_host_info.h"
(...skipping 28 matching lines...) Expand all
39 39
40 if (IsEnabled()) { 40 if (IsEnabled()) {
41 Start(); 41 Start();
42 } 42 }
43 } 43 }
44 44
45 void ChromotingHostManager::Teardown() { 45 void ChromotingHostManager::Teardown() {
46 Stop(); 46 Stop();
47 } 47 }
48 48
49 ChromotingHostManager::~ChromotingHostManager() {}
50
49 bool ChromotingHostManager::IsConfigInitialized() { 51 bool ChromotingHostManager::IsConfigInitialized() {
50 std::string host_id; 52 std::string host_id;
51 if (!chromoting_config_->GetString(remoting::kHostIdConfigPath, &host_id)) 53 if (!chromoting_config_->GetString(remoting::kHostIdConfigPath, &host_id))
52 return false; 54 return false;
53 55
54 return guid::IsValidGUID(host_id); 56 return guid::IsValidGUID(host_id);
55 } 57 }
56 58
57 void ChromotingHostManager::InitializeConfig() { 59 void ChromotingHostManager::InitializeConfig() {
58 VLOG(1) << "Initializing static chromoting host parameters."; 60 VLOG(1) << "Initializing static chromoting host parameters.";
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // When ChromotingHost is shutdown because of failure or a request that 166 // When ChromotingHost is shutdown because of failure or a request that
165 // we made OnChromotingShutdown() is calls. 167 // we made OnChromotingShutdown() is calls.
166 chromoting_host_->Start( 168 chromoting_host_->Start(
167 NewRunnableMethod(this, &ChromotingHostManager::OnShutdown)); 169 NewRunnableMethod(this, &ChromotingHostManager::OnShutdown));
168 } 170 }
169 171
170 void ChromotingHostManager::OnShutdown() { 172 void ChromotingHostManager::OnShutdown() {
171 } 173 }
172 174
173 } // namespace remoting 175 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698