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

Side by Side Diff: ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.cc

Issue 2828083003: Show autofill sync status in CBD (Closed)
Patch Set: fix history test Created 3 years, 7 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 "ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h" 5 #include "ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/browser_sync/profile_sync_service.h" 10 #include "components/browser_sync/profile_sync_service.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 if (pref_name == browsing_data::prefs::kDeletePasswords) { 46 if (pref_name == browsing_data::prefs::kDeletePasswords) {
47 return base::MakeUnique<browsing_data::PasswordsCounter>( 47 return base::MakeUnique<browsing_data::PasswordsCounter>(
48 IOSChromePasswordStoreFactory::GetForBrowserState( 48 IOSChromePasswordStoreFactory::GetForBrowserState(
49 browser_state, ServiceAccessType::EXPLICIT_ACCESS), 49 browser_state, ServiceAccessType::EXPLICIT_ACCESS),
50 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state)); 50 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state));
51 } 51 }
52 52
53 if (pref_name == browsing_data::prefs::kDeleteFormData) { 53 if (pref_name == browsing_data::prefs::kDeleteFormData) {
54 return base::MakeUnique<browsing_data::AutofillCounter>( 54 return base::MakeUnique<browsing_data::AutofillCounter>(
55 ios::WebDataServiceFactory::GetAutofillWebDataForBrowserState( 55 ios::WebDataServiceFactory::GetAutofillWebDataForBrowserState(
56 browser_state, ServiceAccessType::EXPLICIT_ACCESS)); 56 browser_state, ServiceAccessType::EXPLICIT_ACCESS),
57 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state));
57 } 58 }
58 59
59 return nullptr; 60 return nullptr;
60 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698