Index: chrome/browser/chromeos/gdata/gdata_sync_client.h |
diff --git a/chrome/browser/chromeos/gdata/gdata_sync_client.h b/chrome/browser/chromeos/gdata/gdata_sync_client.h |
index 23324c75094a5f3586689badfbd0d69d68e9edf4..ba9010f46574298980e86767a1c201c7c4e3c6f3 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_sync_client.h |
+++ b/chrome/browser/chromeos/gdata/gdata_sync_client.h |
@@ -196,6 +196,8 @@ class GDataSyncClient : public GDataFileSystemInterface::Observer, |
// True if the sync loop is running. |
bool sync_loop_is_running_; |
+ // 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<GDataSyncClient> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(GDataSyncClient); |