Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: components/browsing_data/core/browsing_data_utils.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698