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

Unified Diff: content/browser/accessibility/browser_accessibility_state_impl_win.cc

Issue 11299312: Run Chrome OS accessibility histograms on main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback Created 8 years 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 | « content/browser/accessibility/browser_accessibility_state_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_state_impl_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_state_impl_win.cc b/content/browser/accessibility/browser_accessibility_state_impl_win.cc
index d17a3966af6d4923eb11a8b0ca2b54b912909a44..f65e0efe068495a69243be005bf9b12bb7e7ba2e 100644
--- a/content/browser/accessibility/browser_accessibility_state_impl_win.cc
+++ b/content/browser/accessibility/browser_accessibility_state_impl_win.cc
@@ -14,6 +14,10 @@
namespace content {
void BrowserAccessibilityStateImpl::UpdatePlatformSpecificHistograms() {
+ // NOTE: this method is run from the file thread to reduce jank, since
+ // there's no guarantee these system calls will return quickly. Be careful
+ // not to add any code that isn't safe to run from a non-main thread!
+
AUDIODESCRIPTION audio_description = {0};
audio_description.cbSize = sizeof(AUDIODESCRIPTION);
SystemParametersInfo(SPI_GETAUDIODESCRIPTION, 0, &audio_description, 0);
« no previous file with comments | « content/browser/accessibility/browser_accessibility_state_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698