DescriptionServiceWorker: 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}
Committed: https://chromium.googlesource.com/chromium/src/+/387a6b29a641d6721774f860c25fe85c47f821c0
Patch Set 1 #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 15 (9 generated)
|