Chromium Code Reviews| Index: chrome/browser/sync/profile_sync_service_harness.cc |
| diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc |
| index 45cd86e1dd9697499135b2d4295cb744e235a19b..7b5d337a3beb0bb90df2c76a579f91c2a710280b 100644 |
| --- a/chrome/browser/sync/profile_sync_service_harness.cc |
| +++ b/chrome/browser/sync/profile_sync_service_harness.cc |
| @@ -121,7 +121,10 @@ ProfileSyncServiceHarness::ProfileSyncServiceHarness( |
| } |
| } |
| -ProfileSyncServiceHarness::~ProfileSyncServiceHarness() {} |
| +ProfileSyncServiceHarness::~ProfileSyncServiceHarness() { |
| + if (service_->HasObserver(this)) |
| + service_->RemoveObserver(this); |
| +} |
|
Roger Tawa OOO till Jul 10th
2013/01/14 16:06:52
How is this affected by the rest of this CL?
Andrew T Wilson (Slow)
2013/01/15 13:24:56
The problem is ProfileSyncService::ShutdownImpl()
|
| // static |
| ProfileSyncServiceHarness* ProfileSyncServiceHarness::CreateAndAttach( |