Chromium Code Reviews| 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..46c2bfe66a9fb3aa78ab9d22ddd56b80e6eb812f 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> do_poll_method_factory_; |
|
James Hawkins
2011/11/14 17:57:06
s/do_poll_method_factory/weak_factory_/
dcheng
2011/11/14 20:47:49
Done.
|
| // Polling is done on this background thread. |
| scoped_ptr<base::Thread> polling_thread_; |