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

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

Issue 103053006: Renaming NativeMessagingHost to Me2MeNativeMessagingHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegage
Patch Set: Created 7 years 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // This file implements the common entry point shared by all Chromoting Host 5 // This file implements the common entry point shared by all Chromoting Host
6 // processes. 6 // processes.
7 7
8 #include "remoting/host/host_main.h" 8 #include "remoting/host/host_main.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #if defined(OS_WIN) 139 #if defined(OS_WIN)
140 } else if (process_type == kProcessTypeDaemon) { 140 } else if (process_type == kProcessTypeDaemon) {
141 main_routine = &DaemonProcessMain; 141 main_routine = &DaemonProcessMain;
142 } else if (process_type == kProcessTypeDesktop) { 142 } else if (process_type == kProcessTypeDesktop) {
143 main_routine = &DesktopProcessMain; 143 main_routine = &DesktopProcessMain;
144 } else if (process_type == kProcessTypeController) { 144 } else if (process_type == kProcessTypeController) {
145 main_routine = &ElevatedControllerMain; 145 main_routine = &ElevatedControllerMain;
146 } else if (process_type == kProcessTypeRdpDesktopSession) { 146 } else if (process_type == kProcessTypeRdpDesktopSession) {
147 main_routine = &RdpDesktopSessionMain; 147 main_routine = &RdpDesktopSessionMain;
148 } else if (process_type == kProcessTypeNativeMessagingHost) { 148 } else if (process_type == kProcessTypeNativeMessagingHost) {
149 main_routine = &NativeMessagingHostMain; 149 main_routine = &Me2MeNativeMessagingHostMain;
150 #endif // defined(OS_WIN) 150 #endif // defined(OS_WIN)
151 } 151 }
152 152
153 return main_routine; 153 return main_routine;
154 } 154 }
155 155
156 } // namespace 156 } // namespace
157 157
158 int HostMain(int argc, char** argv) { 158 int HostMain(int argc, char** argv) {
159 #if defined(OS_MACOSX) 159 #if defined(OS_MACOSX)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (exit_code == kUsageExitCode) { 242 if (exit_code == kUsageExitCode) {
243 Usage(command_line->GetProgram()); 243 Usage(command_line->GetProgram());
244 } 244 }
245 245
246 remoting::UnloadResources(); 246 remoting::UnloadResources();
247 247
248 return exit_code; 248 return exit_code;
249 } 249 }
250 250
251 } // namespace remoting 251 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698