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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/elevated_controller.ver ('k') | remoting/host/elevated_controller_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/elevated_controller_module_win.cc
===================================================================
--- remoting/host/elevated_controller_module_win.cc (revision 149037)
+++ remoting/host/elevated_controller_module_win.cc (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <atlbase.h>
-#include <atlcom.h>
-#include <atlctl.h>
-
-#include "base/at_exit.h"
-#include "base/command_line.h"
-#include "base/file_path.h"
-#include "base/logging.h"
-#include "remoting/base/breakpad.h"
-#include "remoting/host/branding.h"
-#include "remoting/host/usage_stats_consent.h"
-
-// MIDL-generated declarations.
-#include "remoting/host/elevated_controller.h"
-
-namespace remoting {
-
-class ElevatedControllerModuleWin
- : public ATL::CAtlExeModuleT<ElevatedControllerModuleWin> {
- public:
- DECLARE_LIBID(LIBID_ChromotingElevatedControllerLib)
-};
-
-} // namespace remoting
-
-
-remoting::ElevatedControllerModuleWin _AtlModule;
-
-int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
-#ifdef OFFICIAL_BUILD
- if (remoting::IsUsageStatsAllowed()) {
- remoting::InitializeCrashReporting();
- }
-#endif // OFFICIAL_BUILD
-
- CommandLine::Init(0, NULL);
-
- // Register and initialize common controls.
- INITCOMMONCONTROLSEX info;
- info.dwSize = sizeof(info);
- info.dwICC = ICC_STANDARD_CLASSES;
- InitCommonControlsEx(&info);
-
- // This object instance is required by Chrome code (for example,
- // FilePath, LazyInstance, MessageLoop).
- base::AtExitManager exit_manager;
-
- // Write logs to the application profile directory.
- FilePath debug_log = remoting::GetConfigDir().
- Append(FILE_PATH_LITERAL("debug.log"));
- InitLogging(debug_log.value().c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::DONT_LOCK_LOG_FILE,
- logging::APPEND_TO_OLD_LOG_FILE,
- logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
-
- return _AtlModule.WinMain(command);
-}
« 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