OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/password_manager/core/browser/password_store.h" | 5 #include "components/password_manager/core/browser/password_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/debug/dump_without_crashing.h" | 10 #include "base/debug/dump_without_crashing.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "components/autofill/core/common/password_form.h" | 17 #include "components/autofill/core/common/password_form.h" |
18 #include "components/password_manager/core/browser/affiliated_match_helper.h" | 18 #include "components/password_manager/core/browser/affiliated_match_helper.h" |
19 #include "components/password_manager/core/browser/password_manager_util.h" | 19 #include "components/password_manager/core/browser/password_manager_util.h" |
20 #include "components/password_manager/core/browser/password_store_consumer.h" | 20 #include "components/password_manager/core/browser/password_store_consumer.h" |
21 #include "components/password_manager/core/browser/password_syncable_service.h" | 21 #include "components/password_manager/core/browser/password_syncable_service.h" |
22 #include "components/password_manager/core/browser/statistics_table.h" | 22 #include "components/password_manager/core/browser/statistics_table.h" |
23 | 23 |
24 using autofill::PasswordForm; | 24 using autofill::PasswordForm; |
25 | 25 |
26 namespace password_manager { | 26 namespace password_manager { |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 syncable_service_.reset(new PasswordSyncableService(this)); | 649 syncable_service_.reset(new PasswordSyncableService(this)); |
650 syncable_service_->InjectStartSyncFlare(flare); | 650 syncable_service_->InjectStartSyncFlare(flare); |
651 } | 651 } |
652 | 652 |
653 void PasswordStore::DestroySyncableService() { | 653 void PasswordStore::DestroySyncableService() { |
654 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); | 654 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); |
655 syncable_service_.reset(); | 655 syncable_service_.reset(); |
656 } | 656 } |
657 | 657 |
658 } // namespace password_manager | 658 } // namespace password_manager |
OLD | NEW |