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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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_factory.h" 5 #include "chrome/browser/password_manager/password_store_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/prefs/pref_service.h"
14 #include "base/rand_util.h" 13 #include "base/rand_util.h"
15 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
16 #include "build/build_config.h" 15 #include "build/build_config.h"
17 #include "chrome/browser/profiles/incognito_helpers.h" 16 #include "chrome/browser/profiles/incognito_helpers.h"
18 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/sync/glue/sync_start_util.h" 18 #include "chrome/browser/sync/glue/sync_start_util.h"
20 #include "chrome/browser/sync/profile_sync_service_factory.h" 19 #include "chrome/browser/sync/profile_sync_service_factory.h"
21 #include "chrome/browser/web_data_service_factory.h" 20 #include "chrome/browser/web_data_service_factory.h"
22 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
23 #include "components/browser_sync/browser/profile_sync_service.h" 22 #include "components/browser_sync/browser/profile_sync_service.h"
24 #include "components/keyed_service/content/browser_context_dependency_manager.h" 23 #include "components/keyed_service/content/browser_context_dependency_manager.h"
25 #include "components/os_crypt/os_crypt_switches.h" 24 #include "components/os_crypt/os_crypt_switches.h"
26 #include "components/password_manager/core/browser/login_database.h" 25 #include "components/password_manager/core/browser/login_database.h"
27 #include "components/password_manager/core/browser/password_store.h" 26 #include "components/password_manager/core/browser/password_store.h"
28 #include "components/password_manager/core/browser/password_store_default.h" 27 #include "components/password_manager/core/browser/password_store_default.h"
29 #include "components/password_manager/core/browser/password_store_factory_util.h " 28 #include "components/password_manager/core/browser/password_store_factory_util.h "
30 #include "components/password_manager/core/common/password_manager_pref_names.h" 29 #include "components/password_manager/core/common/password_manager_pref_names.h"
31 #include "components/pref_registry/pref_registry_syncable.h" 30 #include "components/pref_registry/pref_registry_syncable.h"
31 #include "components/prefs/pref_service.h"
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 33
34 #if defined(OS_WIN) 34 #if defined(OS_WIN)
35 #include "chrome/browser/password_manager/password_manager_util_win.h" 35 #include "chrome/browser/password_manager/password_manager_util_win.h"
36 #include "chrome/browser/password_manager/password_store_win.h" 36 #include "chrome/browser/password_manager/password_store_win.h"
37 #include "components/password_manager/core/browser/webdata/password_web_data_ser vice_win.h" 37 #include "components/password_manager/core/browser/webdata/password_web_data_ser vice_win.h"
38 #elif defined(OS_MACOSX) 38 #elif defined(OS_MACOSX)
39 #include "chrome/browser/password_manager/password_store_proxy_mac.h" 39 #include "chrome/browser/password_manager/password_store_proxy_mac.h"
40 #include "crypto/apple_keychain.h" 40 #include "crypto/apple_keychain.h"
41 #include "crypto/mock_apple_keychain.h" 41 #include "crypto/mock_apple_keychain.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 break; 351 break;
352 case LIBSECRET: 352 case LIBSECRET:
353 usage = OTHER_LIBSECRET; 353 usage = OTHER_LIBSECRET;
354 break; 354 break;
355 } 355 }
356 } 356 }
357 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage, 357 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage,
358 MAX_BACKEND_USAGE_VALUE); 358 MAX_BACKEND_USAGE_VALUE);
359 } 359 }
360 #endif 360 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698