summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/flimflam_profile_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/dbus/flimflam_profile_client.cc')
-rw-r--r--chromeos/dbus/flimflam_profile_client.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chromeos/dbus/flimflam_profile_client.cc b/chromeos/dbus/flimflam_profile_client.cc
index b48f39e..6de3ab2 100644
--- a/chromeos/dbus/flimflam_profile_client.cc
+++ b/chromeos/dbus/flimflam_profile_client.cc
@@ -164,6 +164,8 @@ class FlimflamProfileClientStubImpl : public FlimflamProfileClient {
callback.Run(DBUS_METHOD_CALL_SUCCESS, dictionary);
}
+ // 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<FlimflamProfileClientStubImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(FlimflamProfileClientStubImpl);