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

Unified Diff: content/browser/device_orientation/provider_impl.cc

Issue 13433002: Implement DeviceOrientation API on Windows (Closed) Base URL: ssh://nhu@powerbuilder.sh.intel.com/home/www-data/git-repos/perc/chromium.git@sensor
Patch Set: Fixup according to bulach's comments (#3) Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/provider_impl.cc
diff --git a/content/browser/device_orientation/provider_impl.cc b/content/browser/device_orientation/provider_impl.cc
index c4905147061a9c1f2c5455ebda66c21bdee1ccd9..aa79cebaafb94dd9d56fea2ad0ccad36905b0dcc 100644
--- a/content/browser/device_orientation/provider_impl.cc
+++ b/content/browser/device_orientation/provider_impl.cc
@@ -224,6 +224,9 @@ void ProviderImpl::Start(DeviceData::Type type) {
polling_thread_ = new PollingThread("Device data polling thread",
weak_factory_.GetWeakPtr(),
creator_loop_);
+#if defined(OS_WIN)
+ polling_thread_->init_com_with_mta(true);
+#endif
if (!polling_thread_->Start()) {
LOG(ERROR) << "Failed to start device data polling thread";
delete polling_thread_;

Powered by Google App Engine
This is Rietveld 408576698