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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
11 #include "chrome/browser/sync/glue/sync_start_util.h" | 11 #include "chrome/browser/sync/glue/sync_start_util.h" |
12 #include "chrome/browser/webdata/web_data_service.h" | 12 #include "chrome/browser/webdata/web_data_service.h" |
13 #include "chrome/browser/webdata/web_data_service_factory.h" | 13 #include "chrome/browser/webdata/web_data_service_factory.h" |
14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
17 #include "components/os_crypt/os_crypt_switches.h" | 17 #include "components/os_crypt/os_crypt_switches.h" |
18 #include "components/password_manager/core/browser/login_database.h" | 18 #include "components/password_manager/core/browser/login_database.h" |
19 #include "components/password_manager/core/browser/password_store.h" | 19 #include "components/password_manager/core/browser/password_store.h" |
20 #include "components/password_manager/core/browser/password_store_default.h" | 20 #include "components/password_manager/core/browser/password_store_default.h" |
21 #include "components/password_manager/core/common/password_manager_pref_names.h" | 21 #include "components/password_manager/core/common/password_manager_pref_names.h" |
22 #include "components/user_prefs/pref_registry_syncable.h" | 22 #include "components/pref_registry/pref_registry_syncable.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include "chrome/browser/password_manager/password_store_win.h" | 26 #include "chrome/browser/password_manager/password_store_win.h" |
27 #elif defined(OS_MACOSX) | 27 #elif defined(OS_MACOSX) |
28 #include "chrome/browser/password_manager/password_store_mac.h" | 28 #include "chrome/browser/password_manager/password_store_mac.h" |
29 #include "crypto/apple_keychain.h" | 29 #include "crypto/apple_keychain.h" |
30 #include "crypto/mock_apple_keychain.h" | 30 #include "crypto/mock_apple_keychain.h" |
31 #elif defined(OS_CHROMEOS) || defined(OS_ANDROID) | 31 #elif defined(OS_CHROMEOS) || defined(OS_ANDROID) |
32 // Don't do anything. We're going to use the default store. | 32 // Don't do anything. We're going to use the default store. |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 } | 247 } |
248 | 248 |
249 content::BrowserContext* PasswordStoreFactory::GetBrowserContextToUse( | 249 content::BrowserContext* PasswordStoreFactory::GetBrowserContextToUse( |
250 content::BrowserContext* context) const { | 250 content::BrowserContext* context) const { |
251 return chrome::GetBrowserContextRedirectedInIncognito(context); | 251 return chrome::GetBrowserContextRedirectedInIncognito(context); |
252 } | 252 } |
253 | 253 |
254 bool PasswordStoreFactory::ServiceIsNULLWhileTesting() const { | 254 bool PasswordStoreFactory::ServiceIsNULLWhileTesting() const { |
255 return true; | 255 return true; |
256 } | 256 } |
OLD | NEW |