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

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

Issue 10832068: Moving Windows-only files: remoting/host -> remoting/host/win. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/elevated_controller.ver ('k') | remoting/host/elevated_controller_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <atlbase.h>
6 #include <atlcom.h>
7 #include <atlctl.h>
8
9 #include "base/at_exit.h"
10 #include "base/command_line.h"
11 #include "base/file_path.h"
12 #include "base/logging.h"
13 #include "remoting/base/breakpad.h"
14 #include "remoting/host/branding.h"
15 #include "remoting/host/usage_stats_consent.h"
16
17 // MIDL-generated declarations.
18 #include "remoting/host/elevated_controller.h"
19
20 namespace remoting {
21
22 class ElevatedControllerModuleWin
23 : public ATL::CAtlExeModuleT<ElevatedControllerModuleWin> {
24 public:
25 DECLARE_LIBID(LIBID_ChromotingElevatedControllerLib)
26 };
27
28 } // namespace remoting
29
30
31 remoting::ElevatedControllerModuleWin _AtlModule;
32
33 int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
34 #ifdef OFFICIAL_BUILD
35 if (remoting::IsUsageStatsAllowed()) {
36 remoting::InitializeCrashReporting();
37 }
38 #endif // OFFICIAL_BUILD
39
40 CommandLine::Init(0, NULL);
41
42 // Register and initialize common controls.
43 INITCOMMONCONTROLSEX info;
44 info.dwSize = sizeof(info);
45 info.dwICC = ICC_STANDARD_CLASSES;
46 InitCommonControlsEx(&info);
47
48 // This object instance is required by Chrome code (for example,
49 // FilePath, LazyInstance, MessageLoop).
50 base::AtExitManager exit_manager;
51
52 // Write logs to the application profile directory.
53 FilePath debug_log = remoting::GetConfigDir().
54 Append(FILE_PATH_LITERAL("debug.log"));
55 InitLogging(debug_log.value().c_str(),
56 logging::LOG_ONLY_TO_FILE,
57 logging::DONT_LOCK_LOG_FILE,
58 logging::APPEND_TO_OLD_LOG_FILE,
59 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
60
61 return _AtlModule.WinMain(command);
62 }
OLDNEW
« no previous file with comments | « remoting/host/elevated_controller.ver ('k') | remoting/host/elevated_controller_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698