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

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

Issue 10270034: Using Vista common controls library to show pretty controls in the PIN confirmation dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | remoting/remoting.gyp » ('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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <atlctl.h> 7 #include <atlctl.h>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 13 matching lines...) Expand all
24 }; 24 };
25 25
26 } // namespace remoting 26 } // namespace remoting
27 27
28 28
29 remoting::ElevatedControllerModuleWin _AtlModule; 29 remoting::ElevatedControllerModuleWin _AtlModule;
30 30
31 int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) { 31 int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
32 CommandLine::Init(0, NULL); 32 CommandLine::Init(0, NULL);
33 33
34 // Register and initialize common controls.
35 INITCOMMONCONTROLSEX info;
36 info.dwSize = sizeof(info);
37 info.dwICC = ICC_STANDARD_CLASSES;
38 InitCommonControlsEx(&info);
39
34 // This object instance is required by Chrome code (for example, 40 // This object instance is required by Chrome code (for example,
35 // FilePath, LazyInstance, MessageLoop). 41 // FilePath, LazyInstance, MessageLoop).
36 base::AtExitManager exit_manager; 42 base::AtExitManager exit_manager;
37 43
38 // Write logs to the application profile directory. 44 // Write logs to the application profile directory.
39 FilePath debug_log = remoting::GetConfigDir(). 45 FilePath debug_log = remoting::GetConfigDir().
40 Append(FILE_PATH_LITERAL("debug.log")); 46 Append(FILE_PATH_LITERAL("debug.log"));
41 InitLogging(debug_log.value().c_str(), 47 InitLogging(debug_log.value().c_str(),
42 logging::LOG_ONLY_TO_FILE, 48 logging::LOG_ONLY_TO_FILE,
43 logging::DONT_LOCK_LOG_FILE, 49 logging::DONT_LOCK_LOG_FILE,
44 logging::APPEND_TO_OLD_LOG_FILE, 50 logging::APPEND_TO_OLD_LOG_FILE,
45 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 51 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
46 52
47 return _AtlModule.WinMain(command); 53 return _AtlModule.WinMain(command);
48 } 54 }
OLDNEW
« no previous file with comments | « no previous file | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698