• Alexey Baskakov's avatar
    WebApp: Change a directory structure, how we store files under profile dir. · e725b698
    Alexey Baskakov authored
    The directory structure before:
    
    <ProfileDir>
        WebApps
            Sync Data
                LevelDB
            Temp
                <temp_name>
            <app_id>
        Web Applications
            _crx_<app_id>
    
    After:
    
    <ProfileDir>
        Web Applications
            _crx_<app_id>
            Sync Data
                LevelDB
            Temp
                <temp_name>
            Manifest Resources
                <app_id>
    
    This is breaking change, all local BMO profile icons will be
    clean. We should land it now to avoid file migrations in the
    future.
    
    Note: "Sync Data/LevelDB" directory is created only if
    kDesktopPWAsSharedStoreService feature is off.
    We use shared <ProfileDir>/Sync Data/LevelDB/ otherwise.
    
    This code is disabled behind kDesktopPWAsWithoutExtensions feature.
    It introduces no behavior changes.
    
    Bug: 877898
    Change-Id: I96af88386f3ce6031881d713b330eff2e32f33e4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084215
    Commit-Queue: Alexey Baskakov <loyso@chromium.org>
    Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#746682}
    e725b698
web_app_utils.cc 4.04 KB