Commit f9d9f329 authored by Matt Mueller's avatar Matt Mueller Committed by Commit Bot

Remove unused keychain variable in PasswordStoreFactory::BuildServiceInstanceFor

The variable is unused since https://chromium.googlesource.com/chromium/src/+/efe5baba2d156238707d6d8303b2055ddb246fe2

Bug: none
Change-Id: I11901f5def30d0058f3c1cf10e1ba4e5be9f84d3
Reviewed-on: https://chromium-review.googlesource.com/576993Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Matt Mueller <mattm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487996}
parent 1b9b4fcb
...@@ -43,8 +43,6 @@ ...@@ -43,8 +43,6 @@
#include "components/password_manager/core/browser/webdata/password_web_data_service_win.h" #include "components/password_manager/core/browser/webdata/password_web_data_service_win.h"
#elif defined(OS_MACOSX) #elif defined(OS_MACOSX)
#include "chrome/browser/password_manager/password_store_mac.h" #include "chrome/browser/password_manager/password_store_mac.h"
#include "crypto/apple_keychain.h"
#include "crypto/mock_apple_keychain.h"
#elif defined(OS_CHROMEOS) || defined(OS_ANDROID) #elif defined(OS_CHROMEOS) || defined(OS_ANDROID)
// Don't do anything. We're going to use the default store. // Don't do anything. We're going to use the default store.
#elif defined(USE_X11) #elif defined(USE_X11)
...@@ -170,11 +168,6 @@ PasswordStoreFactory::BuildServiceInstanceFor( ...@@ -170,11 +168,6 @@ PasswordStoreFactory::BuildServiceInstanceFor(
WebDataServiceFactory::GetPasswordWebDataForProfile( WebDataServiceFactory::GetPasswordWebDataForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS)); profile, ServiceAccessType::EXPLICIT_ACCESS));
#elif defined(OS_MACOSX) #elif defined(OS_MACOSX)
std::unique_ptr<crypto::AppleKeychain> keychain(
base::CommandLine::ForCurrentProcess()->HasSwitch(
os_crypt::switches::kUseMockKeychain)
? new crypto::MockAppleKeychain()
: new crypto::AppleKeychain());
ps = new PasswordStoreMac(main_thread_runner, std::move(login_db), ps = new PasswordStoreMac(main_thread_runner, std::move(login_db),
profile->GetPrefs()); profile->GetPrefs());
#elif defined(OS_CHROMEOS) || defined(OS_ANDROID) #elif defined(OS_CHROMEOS) || defined(OS_ANDROID)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment