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

Side by Side Diff: chrome/browser/browsing_data/passwords_counter.cc

Issue 2127403002: Make browsing_data component a layered component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name from components/browsing_data/content/BUILD.gn Created 4 years, 5 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 (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/passwords_counter.h" 5 #include "chrome/browser/browsing_data/passwords_counter.h"
6 #include "chrome/browser/password_manager/password_store_factory.h" 6 #include "chrome/browser/password_manager/password_store_factory.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "components/browsing_data/pref_names.h" 8 #include "components/browsing_data/core/pref_names.h"
9 #include "components/password_manager/core/browser/password_store.h" 9 #include "components/password_manager/core/browser/password_store.h"
10 10
11 PasswordsCounter::PasswordsCounter(Profile* profile) 11 PasswordsCounter::PasswordsCounter(Profile* profile)
12 : BrowsingDataCounter(browsing_data::prefs::kDeletePasswords), 12 : BrowsingDataCounter(browsing_data::prefs::kDeletePasswords),
13 profile_(profile) {} 13 profile_(profile) {}
14 14
15 PasswordsCounter::~PasswordsCounter() { 15 PasswordsCounter::~PasswordsCounter() {
16 store_->RemoveObserver(this); 16 store_->RemoveObserver(this);
17 } 17 }
18 18
(...skipping 21 matching lines...) Expand all
40 results.end(), 40 results.end(),
41 [start](const autofill::PasswordForm* form) { 41 [start](const autofill::PasswordForm* form) {
42 return form->date_created >= start; 42 return form->date_created >= start;
43 })); 43 }));
44 } 44 }
45 45
46 void PasswordsCounter::OnLoginsChanged( 46 void PasswordsCounter::OnLoginsChanged(
47 const password_manager::PasswordStoreChangeList& changes) { 47 const password_manager::PasswordStoreChangeList& changes) {
48 Restart(); 48 Restart();
49 } 49 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/passwords_counter.h ('k') | chrome/browser/browsing_data/passwords_counter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698