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

Side by Side Diff: remoting/host/it2me/it2me_native_messaging_host_main.cc

Issue 290173011: Cleanup: Use base::CommandLine in remoting/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 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/host_main.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "remoting/host/it2me/it2me_native_messaging_host_main.h" 5 #include "remoting/host/it2me/it2me_native_messaging_host_main.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/i18n/icu_util.h" 9 #include "base/i18n/icu_util.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Run the loop until channel is alive. 123 // Run the loop until channel is alive.
124 run_loop.Run(); 124 run_loop.Run();
125 125
126 return kSuccessExitCode; 126 return kSuccessExitCode;
127 } 127 }
128 128
129 int It2MeNativeMessagingHostMain(int argc, char** argv) { 129 int It2MeNativeMessagingHostMain(int argc, char** argv) {
130 // This object instance is required by Chrome code (such as MessageLoop). 130 // This object instance is required by Chrome code (such as MessageLoop).
131 base::AtExitManager exit_manager; 131 base::AtExitManager exit_manager;
132 132
133 CommandLine::Init(argc, argv); 133 base::CommandLine::Init(argc, argv);
134 remoting::InitHostLogging(); 134 remoting::InitHostLogging();
135 135
136 return StartIt2MeNativeMessagingHost(); 136 return StartIt2MeNativeMessagingHost();
137 } 137 }
138 138
139 } // namespace remoting 139 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_main.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698