| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/dump_without_crashing.h" | 8 #include "base/debug/dump_without_crashing.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 13 #include "components/autofill/core/common/password_form.h" | 13 #include "components/autofill/core/common/password_form.h" |
| 14 #include "components/password_manager/core/browser/password_store_consumer.h" | 14 #include "components/password_manager/core/browser/password_store_consumer.h" |
| 15 #include "components/password_manager/core/browser/password_syncable_service.h" | |
| 16 | 15 |
| 17 #if defined(PASSWORD_MANAGER_ENABLE_SYNC) | 16 #if defined(PASSWORD_MANAGER_ENABLE_SYNC) |
| 18 #include "components/password_manager/core/browser/password_syncable_service.h" | 17 #include "components/password_manager/core/browser/password_syncable_service.h" |
| 19 #endif | 18 #endif |
| 20 | 19 |
| 21 using autofill::PasswordForm; | 20 using autofill::PasswordForm; |
| 22 | 21 |
| 23 namespace password_manager { | 22 namespace password_manager { |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 syncable_service_->InjectStartSyncFlare(flare); | 272 syncable_service_->InjectStartSyncFlare(flare); |
| 274 } | 273 } |
| 275 | 274 |
| 276 void PasswordStore::DestroySyncableService() { | 275 void PasswordStore::DestroySyncableService() { |
| 277 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); | 276 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); |
| 278 syncable_service_.reset(); | 277 syncable_service_.reset(); |
| 279 } | 278 } |
| 280 #endif | 279 #endif |
| 281 | 280 |
| 282 } // namespace password_manager | 281 } // namespace password_manager |
| OLD | NEW |