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

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

Issue 10837055: Changes ProviderImpl to use a single DataFetcherFactory (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 659956a7eba31d715b053f49127234fd769b3087..e18c5f15cf1ae7763013a8e744526fb351147d98 100644
--- a/content/browser/device_orientation/provider.cc
+++ b/content/browser/device_orientation/provider.cc
@@ -22,16 +22,15 @@ namespace device_orientation {
Provider* Provider::GetInstance() {
if (!instance_) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- const ProviderImpl::DataFetcherFactory default_factories[] = {
+ const ProviderImpl::DataFetcherFactory *default_factory = NULL;
hans 2012/08/01 19:08:47 hmm, I thought DataFetcherFactory was of type "poi
aousterh 2012/08/02 10:10:38 Hmmm I'm not sure why it was working before. But n
+
#if defined(OS_MACOSX)
- AccelerometerMac::Create,
+ default_factory = AccelerometerMac::Create;
#elif defined(OS_ANDROID)
- DataFetcherImplAndroid::Create,
+ default_factory = DataFetcherImplAndroid::Create;
#endif
- NULL
- };
- instance_ = new ProviderImpl(default_factories);
+ instance_ = new ProviderImpl(default_factory);
}
return instance_;
}
« no previous file with comments | « no previous file | content/browser/device_orientation/provider_impl.h » ('j') | content/browser/device_orientation/provider_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698