| OLD | NEW |
| 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> |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 thread_.reset(new base::Thread("Chrome_PasswordStore_Thread")); | 751 thread_.reset(new base::Thread("Chrome_PasswordStore_Thread")); |
| 752 | 752 |
| 753 if (!thread_->Start()) { | 753 if (!thread_->Start()) { |
| 754 thread_.reset(NULL); | 754 thread_.reset(NULL); |
| 755 return false; | 755 return false; |
| 756 } | 756 } |
| 757 ScheduleTask(base::Bind(&PasswordStoreMac::CreateNotificationService, this)); | 757 ScheduleTask(base::Bind(&PasswordStoreMac::CreateNotificationService, this)); |
| 758 return PasswordStore::Init(); | 758 return PasswordStore::Init(); |
| 759 } | 759 } |
| 760 | 760 |
| 761 void PasswordStoreMac::ShutdownOnUIThread() { |
| 762 } |
| 763 |
| 761 void PasswordStoreMac::ScheduleTask(const base::Closure& task) { | 764 void PasswordStoreMac::ScheduleTask(const base::Closure& task) { |
| 762 if (thread_.get()) { | 765 if (thread_.get()) { |
| 763 thread_->message_loop()->PostTask(FROM_HERE, task); | 766 thread_->message_loop()->PostTask(FROM_HERE, task); |
| 764 } | 767 } |
| 765 } | 768 } |
| 766 | 769 |
| 767 void PasswordStoreMac::ReportMetricsImpl() { | 770 void PasswordStoreMac::ReportMetricsImpl() { |
| 768 login_metadata_db_->ReportMetrics(); | 771 login_metadata_db_->ReportMetrics(); |
| 769 } | 772 } |
| 770 | 773 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 owned_keychain_adapter.SetFindsOnlyOwnedItems(true); | 1009 owned_keychain_adapter.SetFindsOnlyOwnedItems(true); |
| 1007 for (std::vector<PasswordForm*>::const_iterator i = forms.begin(); | 1010 for (std::vector<PasswordForm*>::const_iterator i = forms.begin(); |
| 1008 i != forms.end(); ++i) { | 1011 i != forms.end(); ++i) { |
| 1009 owned_keychain_adapter.RemovePassword(**i); | 1012 owned_keychain_adapter.RemovePassword(**i); |
| 1010 } | 1013 } |
| 1011 } | 1014 } |
| 1012 | 1015 |
| 1013 void PasswordStoreMac::CreateNotificationService() { | 1016 void PasswordStoreMac::CreateNotificationService() { |
| 1014 notification_service_.reset(content::NotificationService::Create()); | 1017 notification_service_.reset(content::NotificationService::Create()); |
| 1015 } | 1018 } |
| OLD | NEW |