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

Side by Side Diff: chrome/browser/browsing_data/autofill_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 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/browsing_data/autofill_counter.h" 5 #include "chrome/browser/browsing_data/autofill_counter.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/web_data_service_factory.h" 13 #include "chrome/browser/web_data_service_factory.h"
14 #include "components/autofill/core/browser/autofill_profile.h" 14 #include "components/autofill/core/browser/autofill_profile.h"
15 #include "components/autofill/core/browser/credit_card.h" 15 #include "components/autofill/core/browser/credit_card.h"
16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
17 #include "components/browsing_data/pref_names.h" 17 #include "components/browsing_data/core/pref_names.h"
18 18
19 AutofillCounter::AutofillCounter(Profile* profile) 19 AutofillCounter::AutofillCounter(Profile* profile)
20 : BrowsingDataCounter(browsing_data::prefs::kDeleteFormData), 20 : BrowsingDataCounter(browsing_data::prefs::kDeleteFormData),
21 profile_(profile), 21 profile_(profile),
22 web_data_service_(nullptr), 22 web_data_service_(nullptr),
23 suggestions_query_(0), 23 suggestions_query_(0),
24 credit_cards_query_(0), 24 credit_cards_query_(0),
25 addresses_query_(0), 25 addresses_query_(0),
26 num_suggestions_(0), 26 num_suggestions_(0),
27 num_credit_cards_(0), 27 num_credit_cards_(0),
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ResultInt num_suggestions, 162 ResultInt num_suggestions,
163 ResultInt num_credit_cards, 163 ResultInt num_credit_cards,
164 ResultInt num_addresses) 164 ResultInt num_addresses)
165 : FinishedResult(source, num_suggestions), 165 : FinishedResult(source, num_suggestions),
166 num_credit_cards_(num_credit_cards), 166 num_credit_cards_(num_credit_cards),
167 num_addresses_(num_addresses) { 167 num_addresses_(num_addresses) {
168 } 168 }
169 169
170 AutofillCounter::AutofillResult::~AutofillResult() { 170 AutofillCounter::AutofillResult::~AutofillResult() {
171 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/autofill_counter.h ('k') | chrome/browser/browsing_data/autofill_counter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698