Index: chrome/browser/sync/test/integration/sync_test.cc |
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc |
index 82cde03c4e42e03e68017b47e931c26da79b249d..91fdf5b50225cf02c3b78948f50826c56bf2ade3 100644 |
--- a/chrome/browser/sync/test/integration/sync_test.cc |
+++ b/chrome/browser/sync/test/integration/sync_test.cc |
@@ -1016,9 +1016,7 @@ bool SyncTest::IsEncryptionComplete(int index) { |
bool SyncTest::AwaitEncryptionComplete(int index) { |
ProfileSyncService* service = GetClient(index)->service(); |
- EncryptionChecker checker(service); |
- checker.Wait(); |
- return !checker.TimedOut(); |
+ return EncryptionChecker(service).Wait(); |
} |
bool SyncTest::AwaitQuiescence() { |