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

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

Issue 9699112: Move *keychain_mac* files to crypto/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made another pass Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_mac.h" 5 #include "chrome/browser/password_manager/password_store_mac.h"
6 #include "chrome/browser/password_manager/password_store_mac_internal.h" 6 #include "chrome/browser/password_manager/password_store_mac_internal.h"
7 7
8 #include <CoreServices/CoreServices.h> 8 #include <CoreServices/CoreServices.h>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/mac/mac_logging.h" 15 #include "base/mac/mac_logging.h"
16 #include "base/mac/mac_util.h" 16 #include "base/mac/mac_util.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "chrome/browser/keychain_mac.h"
22 #include "chrome/browser/password_manager/login_database.h" 21 #include "chrome/browser/password_manager/login_database.h"
23 #include "chrome/browser/password_manager/password_store_change.h" 22 #include "chrome/browser/password_manager/password_store_change.h"
24 #include "chrome/common/chrome_notification_types.h" 23 #include "chrome/common/chrome_notification_types.h"
25 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "crypto/keychain_mac.h"
26 26
27 using crypto::MacKeychain;
27 using webkit::forms::PasswordForm; 28 using webkit::forms::PasswordForm;
28 29
29 // Utility class to handle the details of constructing and running a keychain 30 // Utility class to handle the details of constructing and running a keychain
30 // search from a set of attributes. 31 // search from a set of attributes.
31 class KeychainSearch { 32 class KeychainSearch {
32 public: 33 public:
33 explicit KeychainSearch(const MacKeychain& keychain); 34 explicit KeychainSearch(const MacKeychain& keychain);
34 ~KeychainSearch(); 35 ~KeychainSearch();
35 36
36 // Sets up a keycahin search based on an non "null" (NULL for char*, 37 // Sets up a keycahin search based on an non "null" (NULL for char*,
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 owned_keychain_adapter.SetFindsOnlyOwnedItems(true); 1010 owned_keychain_adapter.SetFindsOnlyOwnedItems(true);
1010 for (std::vector<PasswordForm*>::const_iterator i = forms.begin(); 1011 for (std::vector<PasswordForm*>::const_iterator i = forms.begin();
1011 i != forms.end(); ++i) { 1012 i != forms.end(); ++i) {
1012 owned_keychain_adapter.RemovePassword(**i); 1013 owned_keychain_adapter.RemovePassword(**i);
1013 } 1014 }
1014 } 1015 }
1015 1016
1016 void PasswordStoreMac::CreateNotificationService() { 1017 void PasswordStoreMac::CreateNotificationService() {
1017 notification_service_.reset(content::NotificationService::Create()); 1018 notification_service_.reset(content::NotificationService::Create());
1018 } 1019 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698