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

Side by Side Diff: remoting/host/setup/daemon_controller_delegate_mac.mm

Issue 232223003: Windows chromoting host installation via the NPAPI plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <CoreFoundation/CoreFoundation.h> 5 #include <CoreFoundation/CoreFoundation.h>
6 6
7 #include "remoting/host/setup/daemon_controller_delegate_mac.h" 7 #include "remoting/host/setup/daemon_controller_delegate_mac.h"
8 8
9 #include <launch.h> 9 #include <launch.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 std::string value; 59 std::string value;
60 if (host_config.GetString(kHostIdConfigPath, &value)) 60 if (host_config.GetString(kHostIdConfigPath, &value))
61 config.get()->SetString(kHostIdConfigPath, value); 61 config.get()->SetString(kHostIdConfigPath, value);
62 if (host_config.GetString(kXmppLoginConfigPath, &value)) 62 if (host_config.GetString(kXmppLoginConfigPath, &value))
63 config.get()->SetString(kXmppLoginConfigPath, value); 63 config.get()->SetString(kXmppLoginConfigPath, value);
64 } 64 }
65 65
66 return config.Pass(); 66 return config.Pass();
67 } 67 }
68 68
69 void DaemonControllerDelegateMac::InstallHost(
70 const DaemonController::CompletionCallback& done) {
71 NOTREACHED();
72 }
73
69 void DaemonControllerDelegateMac::SetConfigAndStart( 74 void DaemonControllerDelegateMac::SetConfigAndStart(
70 scoped_ptr<base::DictionaryValue> config, 75 scoped_ptr<base::DictionaryValue> config,
71 bool consent, 76 bool consent,
72 const DaemonController::CompletionCallback& done) { 77 const DaemonController::CompletionCallback& done) {
73 config->SetBoolean(kUsageStatsConsentConfigPath, consent); 78 config->SetBoolean(kUsageStatsConsentConfigPath, consent);
74 std::string config_data; 79 std::string config_data;
75 base::JSONWriter::Write(config.get(), &config_data); 80 base::JSONWriter::Write(config.get(), &config_data);
76 ShowPreferencePane(config_data, done); 81 ShowPreferencePane(config_data, done);
77 } 82 }
78 83
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 self->PreferencePaneCallbackDelegate(name); 291 self->PreferencePaneCallbackDelegate(name);
287 } 292 }
288 293
289 scoped_refptr<DaemonController> DaemonController::Create() { 294 scoped_refptr<DaemonController> DaemonController::Create() {
290 scoped_ptr<DaemonController::Delegate> delegate( 295 scoped_ptr<DaemonController::Delegate> delegate(
291 new DaemonControllerDelegateMac()); 296 new DaemonControllerDelegateMac());
292 return new DaemonController(delegate.Pass()); 297 return new DaemonController(delegate.Pass());
293 } 298 }
294 299
295 } // namespace remoting 300 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_mac.h ('k') | remoting/host/setup/daemon_controller_delegate_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698