Chromium Code Reviews| Index: chrome/browser/sync/profile_sync_service_unittest.cc |
| =================================================================== |
| --- chrome/browser/sync/profile_sync_service_unittest.cc (revision 30691) |
| +++ chrome/browser/sync/profile_sync_service_unittest.cc (working copy) |
| @@ -8,6 +8,7 @@ |
| #include "testing/gtest/include/gtest/gtest.h" |
| #include "base/command_line.h" |
| +#include "base/message_loop.h" |
| #include "base/string_util.h" |
| #include "base/string16.h" |
| #include "chrome/browser/bookmarks/bookmark_model.h" |
| @@ -279,6 +280,9 @@ |
| // Kill the service before the profile. |
| service_.reset(); |
| profile_.reset(); |
| + |
| + // Ensure that the sync objects destruct to avoid memory leaks. |
| + MessageLoop::current()->RunAllPending(); |
|
tim (not reviewing)
2009/11/03 00:12:11
I'm just a little confused if this works, because
jam
2009/11/03 00:16:13
That's not the task in question. That task alread
|
| } |
| ModelAssociator* associator() { |