| 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 db05d315d7db53b3ba5bae4731627f8b78391fd3..e70952b16ba03cbf9595645488634d24e9d4c919 100644
|
| --- a/content/browser/device_orientation/provider_impl.h
|
| +++ b/content/browser/device_orientation/provider_impl.h
|
| @@ -9,7 +9,7 @@
|
| #include <vector>
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/task.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "content/browser/device_orientation/data_fetcher.h"
|
| #include "content/browser/device_orientation/orientation.h"
|
| #include "content/browser/device_orientation/provider.h"
|
| @@ -76,7 +76,7 @@ class ProviderImpl : public Provider {
|
| // from that thread.
|
| scoped_ptr<DataFetcher> data_fetcher_;
|
| Orientation last_orientation_;
|
| - ScopedRunnableMethodFactory<ProviderImpl> do_poll_method_factory_;
|
| + base::WeakPtrFactory<ProviderImpl> weak_factory_;
|
|
|
| // Polling is done on this background thread.
|
| scoped_ptr<base::Thread> polling_thread_;
|
|
|