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