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

Side by Side Diff: ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm

Issue 2933873002: [ObjC ARC] Converts ios/chrome/browser/passwords:passwords to ARC. (Closed)
Patch Set: fix names and nil assignments. Created 3 years, 6 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 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" 5 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
11 #include "components/browser_sync/profile_sync_service.h" 11 #include "components/browser_sync/profile_sync_service.h"
12 #include "components/keyed_service/core/service_access_type.h" 12 #include "components/keyed_service/core/service_access_type.h"
13 #include "components/password_manager/core/browser/password_form_manager.h" 13 #include "components/password_manager/core/browser/password_form_manager.h"
14 #include "components/password_manager/core/browser/password_manager_util.h" 14 #include "components/password_manager/core/browser/password_manager_util.h"
15 #include "components/password_manager/core/common/password_manager_pref_names.h" 15 #include "components/password_manager/core/common/password_manager_pref_names.h"
16 #include "components/signin/core/browser/signin_manager_base.h" 16 #include "components/signin/core/browser/signin_manager_base.h"
17 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 17 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
18 #include "ios/chrome/browser/experimental_flags.h" 18 #include "ios/chrome/browser/experimental_flags.h"
19 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" 19 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h"
20 #include "ios/chrome/browser/signin/signin_manager_factory.h" 20 #include "ios/chrome/browser/signin/signin_manager_factory.h"
21 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 21 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 #if !defined(__has_feature) || !__has_feature(objc_arc)
25 #error "This file requires ARC support."
26 #endif
27
24 using password_manager::PasswordFormManager; 28 using password_manager::PasswordFormManager;
25 using password_manager::PasswordStore; 29 using password_manager::PasswordStore;
26 using password_manager::PasswordSyncState; 30 using password_manager::PasswordSyncState;
27 31
28 namespace { 32 namespace {
29 33
30 const syncer::SyncService* GetSyncService( 34 const syncer::SyncService* GetSyncService(
31 ios::ChromeBrowserState* browser_state) { 35 ios::ChromeBrowserState* browser_state) {
32 return IOSChromeProfileSyncServiceFactory::GetForBrowserStateIfExists( 36 return IOSChromeProfileSyncServiceFactory::GetForBrowserStateIfExists(
33 browser_state); 37 browser_state);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 130 }
127 131
128 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const { 132 const GURL& IOSChromePasswordManagerClient::GetLastCommittedEntryURL() const {
129 return delegate_.lastCommittedURL; 133 return delegate_.lastCommittedURL;
130 } 134 }
131 135
132 const password_manager::CredentialsFilter* 136 const password_manager::CredentialsFilter*
133 IOSChromePasswordManagerClient::GetStoreResultFilter() const { 137 IOSChromePasswordManagerClient::GetStoreResultFilter() const {
134 return &credentials_filter_; 138 return &credentials_filter_;
135 } 139 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/passwords/BUILD.gn ('k') | ios/chrome/browser/passwords/ios_chrome_password_manager_driver.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698