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_factory.h" | 5 #include "chrome/browser/password_manager/password_store_factory.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 return base::Singleton<PasswordStoreFactory>::get(); | 84 return base::Singleton<PasswordStoreFactory>::get(); |
85 } | 85 } |
86 | 86 |
87 // static | 87 // static |
88 void PasswordStoreFactory::OnPasswordsSyncedStatePotentiallyChanged( | 88 void PasswordStoreFactory::OnPasswordsSyncedStatePotentiallyChanged( |
89 Profile* profile) { | 89 Profile* profile) { |
90 scoped_refptr<PasswordStore> password_store = | 90 scoped_refptr<PasswordStore> password_store = |
91 GetForProfile(profile, ServiceAccessType::EXPLICIT_ACCESS); | 91 GetForProfile(profile, ServiceAccessType::EXPLICIT_ACCESS); |
92 if (!password_store) | 92 if (!password_store) |
93 return; | 93 return; |
94 sync_driver::SyncService* sync_service = | 94 syncer::SyncService* sync_service = |
95 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile); | 95 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile); |
96 net::URLRequestContextGetter* request_context_getter = | 96 net::URLRequestContextGetter* request_context_getter = |
97 profile->GetRequestContext(); | 97 profile->GetRequestContext(); |
98 | 98 |
99 password_manager::ToggleAffiliationBasedMatchingBasedOnPasswordSyncedState( | 99 password_manager::ToggleAffiliationBasedMatchingBasedOnPasswordSyncedState( |
100 password_store.get(), sync_service, request_context_getter, | 100 password_store.get(), sync_service, request_context_getter, |
101 profile->GetPath(), content::BrowserThread::GetTaskRunnerForThread( | 101 profile->GetPath(), content::BrowserThread::GetTaskRunnerForThread( |
102 content::BrowserThread::DB)); | 102 content::BrowserThread::DB)); |
103 } | 103 } |
104 | 104 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 break; | 350 break; |
351 case LIBSECRET: | 351 case LIBSECRET: |
352 usage = OTHER_LIBSECRET; | 352 usage = OTHER_LIBSECRET; |
353 break; | 353 break; |
354 } | 354 } |
355 } | 355 } |
356 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage, | 356 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage, |
357 MAX_BACKEND_USAGE_VALUE); | 357 MAX_BACKEND_USAGE_VALUE); |
358 } | 358 } |
359 #endif | 359 #endif |
OLD | NEW |