• Alexey Baskakov's avatar
    WebApp: Avoid using friend classes. · dc527aff
    Alexey Baskakov authored
    Background: All our app registry read/write access permissions
    are enforced by the compiler. We used `friend` declarations before.
    
    Introduce WebAppRegistrarMutable subtype for WebAppRegistrar.
    
    While WebAppRegistrar serves as read-only model, WebAppRegistrarMutable
    is a "view" which allows writable access for an owner which has
    WebAppRegistrarMutable pointer.
    
    WebAppSyncBridge is the only controller which has that writable access.
    
    Bug: 860583
    Change-Id: I4623ce826d25f0c2bbf9ed685a932d7eb734bdcd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1820497
    Commit-Queue: Alexey Baskakov <loyso@chromium.org>
    Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#699248}
    dc527aff
web_app_registrar.cc 5.64 KB