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

Side by Side Diff: content/browser/accessibility/browser_accessibility_state_impl_win.cc

Issue 642313003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Including id in the AUTHORS file. Created 6 years, 2 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
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 "content/browser/accessibility/browser_accessibility_state_impl.h" 5 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <psapi.h> 8 #include <psapi.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 19 matching lines...) Expand all
30 !!win_screen_reader); 30 !!win_screen_reader);
31 31
32 STICKYKEYS sticky_keys = {0}; 32 STICKYKEYS sticky_keys = {0};
33 sticky_keys.cbSize = sizeof(STICKYKEYS); 33 sticky_keys.cbSize = sizeof(STICKYKEYS);
34 SystemParametersInfo(SPI_GETSTICKYKEYS, 0, &sticky_keys, 0); 34 SystemParametersInfo(SPI_GETSTICKYKEYS, 0, &sticky_keys, 0);
35 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinStickyKeys", 35 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinStickyKeys",
36 0 != (sticky_keys.dwFlags & SKF_STICKYKEYSON)); 36 0 != (sticky_keys.dwFlags & SKF_STICKYKEYSON));
37 37
38 // Get the file paths of all DLLs loaded. 38 // Get the file paths of all DLLs loaded.
39 HANDLE process = GetCurrentProcess(); 39 HANDLE process = GetCurrentProcess();
40 HMODULE* modules = NULL; 40 HMODULE* modules = nullptr;
41 DWORD bytes_required; 41 DWORD bytes_required;
42 if (!EnumProcessModules(process, modules, 0, &bytes_required)) 42 if (!EnumProcessModules(process, modules, 0, &bytes_required))
43 return; 43 return;
44 44
45 scoped_ptr<char[]> buffer(new char[bytes_required]); 45 scoped_ptr<char[]> buffer(new char[bytes_required]);
46 modules = reinterpret_cast<HMODULE*>(buffer.get()); 46 modules = reinterpret_cast<HMODULE*>(buffer.get());
47 DWORD ignore; 47 DWORD ignore;
48 if (!EnumProcessModules(process, modules, bytes_required, &ignore)) 48 if (!EnumProcessModules(process, modules, bytes_required, &ignore))
49 return; 49 return;
50 50
(...skipping 17 matching lines...) Expand all
68 zoomtext = true; 68 zoomtext = true;
69 } 69 }
70 70
71 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinJAWS", jaws); 71 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinJAWS", jaws);
72 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinNVDA", nvda); 72 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinNVDA", nvda);
73 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinSAToGo", satogo); 73 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinSAToGo", satogo);
74 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinZoomText", zoomtext); 74 UMA_HISTOGRAM_BOOLEAN("Accessibility.WinZoomText", zoomtext);
75 } 75 }
76 76
77 } // namespace content 77 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698