Index: chrome/browser/chromeos/gdata/gdata_file_system.h |
=================================================================== |
--- chrome/browser/chromeos/gdata/gdata_file_system.h (revision 149581) |
+++ chrome/browser/chromeos/gdata/gdata_file_system.h (working copy) |
@@ -874,13 +874,13 @@ |
scoped_ptr<PrefChangeRegistrar> pref_registrar_; |
+ // WeakPtrFactory and WeakPtr bound to the UI thread. |
+ base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; |
+ base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
+ |
ObserverList<Observer> observers_; |
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
- |
- // Note: This should remain the last member so it'll be destroyed and |
- // invalidate its weak pointers before any other members are destroyed. |
- base::WeakPtrFactory<GDataFileSystem> weak_ptr_factory_; |
}; |
} // namespace gdata |