[ios] Change SessionServiceIOS API to avoid useless work.
If multiple call to -saveSession:directory:immediately: are made in quick succession, the SessionIOS objects are created to be immediately destroyed when the scheduled save is cancelled. Change the SessionServiceIOS API to instead take a block creating the SessionIOS instance and invoke it on the main thread, before requesting that the data be serialised to the disk (by sending a task on IO thread). BUG=725539 Change-Id: I82b42d2b46baf03a7280e60185973c635dc164a2 Reviewed-on: https://chromium-review.googlesource.com/513929 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:Rohit Rao <rohitrao@chromium.org> Cr-Commit-Position: refs/heads/master@{#476254}
Showing
Please register or sign in to comment