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

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

Issue 12298030: Add base:: qualifiers for FilePath uses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/desktop_process_main.cc ('k') | remoting/host/win/daemon_process_main.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 (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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include "remoting/host/remoting_me2me_host.h" 7 #include "remoting/host/remoting_me2me_host.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 #if defined(OS_WIN) 1099 #if defined(OS_WIN)
1100 // Register and initialize common controls. 1100 // Register and initialize common controls.
1101 INITCOMMONCONTROLSEX info; 1101 INITCOMMONCONTROLSEX info;
1102 info.dwSize = sizeof(info); 1102 info.dwSize = sizeof(info);
1103 info.dwICC = ICC_STANDARD_CLASSES; 1103 info.dwICC = ICC_STANDARD_CLASSES;
1104 InitCommonControlsEx(&info); 1104 InitCommonControlsEx(&info);
1105 1105
1106 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs. 1106 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs.
1107 // N.B. This API exists on Vista and above. 1107 // N.B. This API exists on Vista and above.
1108 if (base::win::GetVersion() >= base::win::VERSION_VISTA) { 1108 if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
1109 FilePath path(base::GetNativeLibraryName(UTF8ToUTF16("user32"))); 1109 base::FilePath path(base::GetNativeLibraryName(UTF8ToUTF16("user32")));
1110 base::ScopedNativeLibrary user32(path); 1110 base::ScopedNativeLibrary user32(path);
1111 CHECK(user32.is_valid()); 1111 CHECK(user32.is_valid());
1112 1112
1113 typedef BOOL (WINAPI * SetProcessDPIAwareFn)(); 1113 typedef BOOL (WINAPI * SetProcessDPIAwareFn)();
1114 SetProcessDPIAwareFn set_process_dpi_aware = 1114 SetProcessDPIAwareFn set_process_dpi_aware =
1115 static_cast<SetProcessDPIAwareFn>( 1115 static_cast<SetProcessDPIAwareFn>(
1116 user32.GetFunctionPointer("SetProcessDPIAware")); 1116 user32.GetFunctionPointer("SetProcessDPIAware"));
1117 set_process_dpi_aware(); 1117 set_process_dpi_aware();
1118 } 1118 }
1119 #endif // defined(OS_WIN) 1119 #endif // defined(OS_WIN)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 return exit_code; 1151 return exit_code;
1152 } 1152 }
1153 1153
1154 } // namespace remoting 1154 } // namespace remoting
1155 1155
1156 #if !defined(OS_WIN) 1156 #if !defined(OS_WIN)
1157 int main(int argc, char** argv) { 1157 int main(int argc, char** argv) {
1158 return remoting::HostProcessMain(argc, argv); 1158 return remoting::HostProcessMain(argc, argv);
1159 } 1159 }
1160 #endif // !defined(OS_WIN) 1160 #endif // !defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/desktop_process_main.cc ('k') | remoting/host/win/daemon_process_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698