remove_stale_data.h 779 B

12345678910111213141516171819202122232425
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_REMOVE_STALE_DATA_H_
  5. #define BASE_ANDROID_REMOVE_STALE_DATA_H_
  6. #include "base/base_export.h"
  7. namespace base {
  8. class FilePath;
  9. namespace android {
  10. // Removes the `data_directory` with all its contents and records a histogram
  11. // allowing to estimate the rate of removals.
  12. // TODO(crbug.com/1331809): Remove this code after the data from the field shows
  13. // no removal is happening in practice, plus a few milestones.
  14. void BASE_EXPORT RemoveStaleDataDirectory(const base::FilePath& data_directory);
  15. } // namespace android
  16. } // namespace base
  17. #endif // BASE_ANDROID_REMOVE_STALE_DATA_H_