ServiceWorker: use the id assigned to the provider host in unittests
In several tests, currently provider's id is assigned to a variable which is initialized by some random value at the beginning of the test, the provider host instance is created by using the id, and some other objects are also initialized by the id. After browser-side SWProviderHost creation, it'll be problematic because the id will be assigned internally. This patch is to fix the tests by getting the id from ServiceWorkerProviderHost::provider_id() directly. This is split off from https://crrev.com/2779763004/ . BUG=629701, 676983, 668633 Review-Url: https://codereview.chromium.org/2932273002 Cr-Commit-Position: refs/heads/master@{#478560}
Showing
Please register or sign in to comment