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

Side by Side Diff: chrome/browser/password_manager/password_store_proxy_mac.cc

Issue 2320763002: Support origin-based deletion for password store statistics (Closed)
Patch Set: Mac-specific code Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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/password_manager/password_store_proxy_mac.h" 5 #include "chrome/browser/password_manager/password_store_proxy_mac.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::Time delete_end) { 188 base::Time delete_end) {
189 return GetBackend()->RemoveLoginsSyncedBetweenImpl(delete_begin, delete_end); 189 return GetBackend()->RemoveLoginsSyncedBetweenImpl(delete_begin, delete_end);
190 } 190 }
191 191
192 PasswordStoreChangeList 192 PasswordStoreChangeList
193 PasswordStoreProxyMac::DisableAutoSignInForOriginsImpl( 193 PasswordStoreProxyMac::DisableAutoSignInForOriginsImpl(
194 const base::Callback<bool(const GURL&)>& origin_filter) { 194 const base::Callback<bool(const GURL&)>& origin_filter) {
195 return GetBackend()->DisableAutoSignInForOriginsImpl(origin_filter); 195 return GetBackend()->DisableAutoSignInForOriginsImpl(origin_filter);
196 } 196 }
197 197
198 bool PasswordStoreProxyMac::RemoveStatisticsCreatedBetweenImpl( 198 bool PasswordStoreProxyMac::RemoveStatisticsByOriginAndTimeImpl(
199 const base::Callback<bool(const GURL&)>& origin_filter,
199 base::Time delete_begin, 200 base::Time delete_begin,
200 base::Time delete_end) { 201 base::Time delete_end) {
201 return GetBackend()->RemoveStatisticsCreatedBetweenImpl(delete_begin, 202 return GetBackend()->RemoveStatisticsByOriginAndTimeImpl(
202 delete_end); 203 origin_filter, delete_begin, delete_end);
203 } 204 }
204 205
205 std::vector<std::unique_ptr<autofill::PasswordForm>> 206 std::vector<std::unique_ptr<autofill::PasswordForm>>
206 PasswordStoreProxyMac::FillMatchingLogins(const FormDigest& form) { 207 PasswordStoreProxyMac::FillMatchingLogins(const FormDigest& form) {
207 return GetBackend()->FillMatchingLogins(form); 208 return GetBackend()->FillMatchingLogins(form);
208 } 209 }
209 210
210 bool PasswordStoreProxyMac::FillAutofillableLogins( 211 bool PasswordStoreProxyMac::FillAutofillableLogins(
211 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) { 212 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) {
212 return GetBackend()->FillAutofillableLogins(forms); 213 return GetBackend()->FillAutofillableLogins(forms);
(...skipping 10 matching lines...) Expand all
223 } 224 }
224 225
225 void PasswordStoreProxyMac::RemoveSiteStatsImpl(const GURL& origin_domain) { 226 void PasswordStoreProxyMac::RemoveSiteStatsImpl(const GURL& origin_domain) {
226 GetBackend()->RemoveSiteStatsImpl(origin_domain); 227 GetBackend()->RemoveSiteStatsImpl(origin_domain);
227 } 228 }
228 229
229 std::vector<std::unique_ptr<password_manager::InteractionsStats>> 230 std::vector<std::unique_ptr<password_manager::InteractionsStats>>
230 PasswordStoreProxyMac::GetSiteStatsImpl(const GURL& origin_domain) { 231 PasswordStoreProxyMac::GetSiteStatsImpl(const GURL& origin_domain) {
231 return GetBackend()->GetSiteStatsImpl(origin_domain); 232 return GetBackend()->GetSiteStatsImpl(origin_domain);
232 } 233 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698