| Index: content/browser/device_orientation/provider_impl.h
|
| diff --git a/content/browser/device_orientation/provider_impl.h b/content/browser/device_orientation/provider_impl.h
|
| index 32c63691a6a531cc9ed313de23ac86aa1ce86115..7256aea19074872b04085a965791a34c3d845f0d 100644
|
| --- a/content/browser/device_orientation/provider_impl.h
|
| +++ b/content/browser/device_orientation/provider_impl.h
|
| @@ -24,9 +24,10 @@ class ProviderImpl : public Provider {
|
| public:
|
| typedef DataFetcher* (*DataFetcherFactory)();
|
|
|
| - // Create a ProviderImpl that uses the NULL-terminated factories array to find
|
| - // a DataFetcher that can provide orientation data.
|
| - CONTENT_EXPORT ProviderImpl(const DataFetcherFactory factories[]);
|
| + // Create a ProviderImpl that uses the factory to create a DataFetcher that
|
| + // can provide orientation data. A NULL DataFetcherFactory indicates that
|
| + // there are no DataFetchers for this OS.
|
| + CONTENT_EXPORT ProviderImpl(DataFetcherFactory factory);
|
|
|
| // From Provider.
|
| virtual void AddObserver(Observer* observer) OVERRIDE;
|
| @@ -52,7 +53,7 @@ class ProviderImpl : public Provider {
|
| MessageLoop* creator_loop_;
|
|
|
| // Members below are only to be used from the creator_loop_.
|
| - std::vector<DataFetcherFactory> factories_;
|
| + DataFetcherFactory factory_;
|
| std::set<Observer*> observers_;
|
| Orientation last_notification_;
|
|
|
|
|