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

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

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Look for DLLs of assistive technology known to work with Chrome. 51 // Look for DLLs of assistive technology known to work with Chrome.
52 bool jaws = false; 52 bool jaws = false;
53 bool nvda = false; 53 bool nvda = false;
54 bool satogo = false; 54 bool satogo = false;
55 bool zoomtext = false; 55 bool zoomtext = false;
56 size_t module_count = bytes_required / sizeof(HMODULE); 56 size_t module_count = bytes_required / sizeof(HMODULE);
57 for (size_t i = 0; i < module_count; i++) { 57 for (size_t i = 0; i < module_count; i++) {
58 TCHAR filename[MAX_PATH]; 58 TCHAR filename[MAX_PATH];
59 GetModuleFileName(modules[i], filename, sizeof(filename)); 59 GetModuleFileName(modules[i], filename, sizeof(filename));
60 base::string16 module_name(base::FilePath(filename).BaseName().value()); 60 base::string16 module_name(base::FilePath(filename).BaseName().value());
61 if (LowerCaseEqualsASCII(module_name, "fsdomsrv.dll")) 61 if (base::LowerCaseEqualsASCII(module_name, "fsdomsrv.dll"))
62 jaws = true; 62 jaws = true;
63 if (LowerCaseEqualsASCII(module_name, "vbufbackend_gecko_ia2.dll")) 63 if (base::LowerCaseEqualsASCII(module_name, "vbufbackend_gecko_ia2.dll"))
64 nvda = true; 64 nvda = true;
65 if (LowerCaseEqualsASCII(module_name, "stsaw32.dll")) 65 if (base::LowerCaseEqualsASCII(module_name, "stsaw32.dll"))
66 satogo = true; 66 satogo = true;
67 if (LowerCaseEqualsASCII(module_name, "zslhook.dll")) 67 if (base::LowerCaseEqualsASCII(module_name, "zslhook.dll"))
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
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698