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

Unified Diff: content/browser/device_orientation/provider.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: Update according to comment #17 Created 7 years, 8 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.cc
diff --git a/content/browser/device_orientation/provider.cc b/content/browser/device_orientation/provider.cc
index ead9b140eeb84e3478938d2c3b42a73539259d7b..b7aa52f8a684a9a1464dafb1f7ff34927936ab77 100644
--- a/content/browser/device_orientation/provider.cc
+++ b/content/browser/device_orientation/provider.cc
@@ -13,6 +13,8 @@
#include "content/browser/device_orientation/accelerometer_mac.h"
#elif defined(OS_ANDROID)
#include "content/browser/device_orientation/data_fetcher_impl_android.h"
+#elif defined(OS_WIN)
+#include "content/browser/device_orientation/data_fetcher_impl_win.h"
#endif
namespace content {
@@ -26,6 +28,8 @@ Provider* Provider::GetInstance() {
default_factory = AccelerometerMac::Create;
#elif defined(OS_ANDROID)
default_factory = DataFetcherImplAndroid::Create;
+#elif defined(OS_WIN)
+ default_factory = DataFetcherImplWin::Create;
#endif
instance_ = new ProviderImpl(default_factory);
« no previous file with comments | « content/browser/device_orientation/data_fetcher_impl_win.cc ('k') | content/browser/device_orientation/provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698