OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/browsing_data/core/browsing_data_utils.h" | 5 #include "components/browsing_data/core/browsing_data_utils.h" |
6 | 6 |
7 #include "base/metrics/user_metrics.h" | 7 #include "base/metrics/user_metrics.h" |
8 #include "components/browsing_data/core/counters/autofill_counter.h" | 8 #include "components/browsing_data/core/counters/autofill_counter.h" |
9 #include "components/browsing_data/core/counters/history_counter.h" | 9 #include "components/browsing_data/core/counters/history_counter.h" |
10 #include "components/browsing_data/core/counters/passwords_counter.h" | 10 #include "components/browsing_data/core/counters/passwords_counter.h" |
11 #include "components/browsing_data/core/pref_names.h" | 11 #include "components/browsing_data/core/pref_names.h" |
12 #include "grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 | 14 |
15 namespace browsing_data { | 15 namespace browsing_data { |
16 | 16 |
17 base::Time CalculateBeginDeleteTime(TimePeriod time_period) { | 17 base::Time CalculateBeginDeleteTime(TimePeriod time_period) { |
18 base::TimeDelta diff; | 18 base::TimeDelta diff; |
19 base::Time delete_begin_time = base::Time::Now(); | 19 base::Time delete_begin_time = base::Time::Now(); |
20 switch (time_period) { | 20 switch (time_period) { |
21 case LAST_HOUR: | 21 case LAST_HOUR: |
22 diff = base::TimeDelta::FromHours(1); | 22 diff = base::TimeDelta::FromHours(1); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 case NUM_TYPES: | 195 case NUM_TYPES: |
196 // This is not an actual type. | 196 // This is not an actual type. |
197 NOTREACHED(); | 197 NOTREACHED(); |
198 return false; | 198 return false; |
199 } | 199 } |
200 NOTREACHED(); | 200 NOTREACHED(); |
201 return false; | 201 return false; |
202 } | 202 } |
203 | 203 |
204 } // namespace browsing_data | 204 } // namespace browsing_data |
OLD | NEW |