summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/gdata/gdata_sync_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/gdata/gdata_sync_client.cc')
-rw-r--r--chrome/browser/chromeos/gdata/gdata_sync_client.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/gdata/gdata_sync_client.cc b/chrome/browser/chromeos/gdata/gdata_sync_client.cc
index 7316488..0bb7092 100644
--- a/chrome/browser/chromeos/gdata/gdata_sync_client.cc
+++ b/chrome/browser/chromeos/gdata/gdata_sync_client.cc
@@ -88,6 +88,8 @@ GDataSyncClient::GDataSyncClient(Profile* profile,
GDataSyncClient::~GDataSyncClient() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ if (file_system_)
+ file_system_->RemoveObserver(this);
if (cache_)
cache_->RemoveObserver(this);