commit | 6da0b6f3b2159374954c9e77b5f5f468f901a0cb | [log] [tgz] |
---|---|---|
author | jkarlin <jkarlin@chromium.org> | Fri Sep 18 13:55:16 2015 |
committer | Commit bot <commit-bot@chromium.org> | Fri Sep 18 13:55:48 2015 |
tree | 3b5abef79918460e668ff4587c7a9f6493a83202 | |
parent | 87345d917e3a411f343cd90e6129b8824f5512a1 [diff] |
[BackgroundSync] Add browser side support for SyncRegistration.done This CL adds support for the "done" promise of background sync registrations. See http://slightlyoff.github.io/BackgroundSync/spec/index.html for more detail. Done resolves with true if the sync event fired successfully and false if it failed or is unregistered. Changes: 1. Add and test BackgroundSyncManager::NotifyWhenDone. 2. Plumb NotifyWhenDone to the child process. 3. Test with BrowserTests that done can be called before or after a registration completes. Depends on: https://codereview.chromium.org/1353613002/ https://codereview.chromium.org/1348603003/ BUG=502214 Review URL: https://codereview.chromium.org/1344843003 Cr-Commit-Position: refs/heads/master@{#349660}