OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "chrome/browser/browsing_data/browsing_data_counter.h" | 5 #include "chrome/browser/browsing_data/browsing_data_counter.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/prefs/pref_service.h" | |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "components/prefs/pref_service.h" |
12 | 12 |
13 BrowsingDataCounter::BrowsingDataCounter() {} | 13 BrowsingDataCounter::BrowsingDataCounter() {} |
14 | 14 |
15 BrowsingDataCounter::~BrowsingDataCounter() { | 15 BrowsingDataCounter::~BrowsingDataCounter() { |
16 } | 16 } |
17 | 17 |
18 void BrowsingDataCounter::Init( | 18 void BrowsingDataCounter::Init( |
19 Profile* profile, | 19 Profile* profile, |
20 const Callback& callback) { | 20 const Callback& callback) { |
21 DCHECK(!initialized_); | 21 DCHECK(!initialized_); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 bool BrowsingDataCounter::FinishedResult::Finished() const { | 97 bool BrowsingDataCounter::FinishedResult::Finished() const { |
98 return true; | 98 return true; |
99 } | 99 } |
100 | 100 |
101 BrowsingDataCounter::ResultInt | 101 BrowsingDataCounter::ResultInt |
102 BrowsingDataCounter::FinishedResult::Value() const { | 102 BrowsingDataCounter::FinishedResult::Value() const { |
103 return value_; | 103 return value_; |
104 } | 104 } |
OLD | NEW |