• Nancy Wang's avatar
    Implement the writing function to save the restore data. · c96bf224
    Nancy Wang authored
    This CL implements below functions:
    1. Save the app launch information to local variable
    |file_path_to_restore_data_|.
    
    2. Add flags |ShouldUpdate| per profile path to record whether there
    are updates to be saved to the full restore file.
    
    3. Add a timer to delay and cache the restore data writing.
    
    4. Call FullRestoreFileHandler to write the restore data from
    |file_path_to_restore_data_| to the full restore file on a background
    task.
    
    There will be a separate CL to add tests.
    
    Bug: 1146900
    Change-Id: Icf7a674d0d474005eb8dc33b39b5660ab6436153
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2589613
    Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#837880}
    c96bf224
app_restore_data.h 2.28 KB