Re-added sanitization.

This code was accidentaly removed when rebasing the auth changes..

BUG: 33269702
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes
Change-Id: I0dabad9b76ee6c523a546c494f147796a50531e7
This commit is contained in:
Felipe Leme
2017-02-07 14:29:48 -08:00
parent fb0f360222
commit f894be41d6

View File

@@ -165,6 +165,17 @@ final class AutoFillManagerServiceImpl {
session.mStructure = structure;
}
// TODO(b/33197203, b/33269702): Must fetch the data so it's available later on
// handleSave(), even if if the activity is gone by then, but structure.ensureData()
// gives a ONE_WAY warning because system_service could block on app calls.
// We need to change AssistStructure so it provides a "one-way" writeToParcel()
// method that sends all the data
structure.ensureData();
// Sanitize structure before it's sent to service.
structure.sanitizeForParceling(true);
// TODO(b/33197203): Need to pipe the bundle
session.mRemoteFillService.onFillRequest(structure, null);
}