DescriptionPaymentApp: Remove scope_url parameter from Get/SetManifest methods.
When calling setManifest()/getManifest() from Blink side, we currently pass
scope_url to find associated service worker in Content layer. However, it is
not a good way to pass scope_url each time. Of course, since the implementations
are all private methods, there is no risk of calling it wrong from the outside.
But some test classes are declared as friend class and it can be misused in the
classes.
Therefore, this CL is adding Init() in payment_app.mojom and then using it in
Blink side PaymentAppManager when creating the object. Then, we don't need to
pass scope_url each time when calling setManifest()/getManifest().
BUG=661608
TEST=existing tests
Committed: https://crrev.com/f87f3d68d3a82070b599948cf6fbed3b224e0bf0
Cr-Commit-Position: refs/heads/master@{#439942}
Patch Set 1 #
Total comments: 7
Patch Set 2 : PaymentApp: Remove scope_url parameter from Get/SetManifest methods. #
Total comments: 2
Patch Set 3 : rebased #
Messages
Total messages: 24 (11 generated)
|