| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/sync/glue/password_change_processor.h" | 5 #include "chrome/browser/sync/glue/password_change_processor.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/password_manager/password_store.h" | 11 #include "chrome/browser/password_manager/password_store.h" |
| 10 #include "chrome/browser/password_manager/password_store_change.h" | 12 #include "chrome/browser/password_manager/password_store_change.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/sync/glue/password_model_associator.h" | 14 #include "chrome/browser/sync/glue/password_model_associator.h" |
| 13 #include "chrome/browser/sync/profile_sync_service.h" | 15 #include "chrome/browser/sync/profile_sync_service.h" |
| 14 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | 16 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
| 15 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_details.h" |
| 18 #include "chrome/common/notification_source.h" |
| 16 #include "chrome/common/notification_type.h" | 19 #include "chrome/common/notification_type.h" |
| 17 #include "webkit/glue/password_form.h" | 20 #include "webkit/glue/password_form.h" |
| 18 | 21 |
| 19 namespace browser_sync { | 22 namespace browser_sync { |
| 20 | 23 |
| 21 PasswordChangeProcessor::PasswordChangeProcessor( | 24 PasswordChangeProcessor::PasswordChangeProcessor( |
| 22 PasswordModelAssociator* model_associator, | 25 PasswordModelAssociator* model_associator, |
| 23 PasswordStore* password_store, | 26 PasswordStore* password_store, |
| 24 UnrecoverableErrorHandler* error_handler) | 27 UnrecoverableErrorHandler* error_handler) |
| 25 : ChangeProcessor(error_handler), | 28 : ChangeProcessor(error_handler), |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 216 } |
| 214 | 217 |
| 215 void PasswordChangeProcessor::StopObserving() { | 218 void PasswordChangeProcessor::StopObserving() { |
| 216 DCHECK(expected_loop_ == MessageLoop::current()); | 219 DCHECK(expected_loop_ == MessageLoop::current()); |
| 217 notification_registrar_.Remove(this, | 220 notification_registrar_.Remove(this, |
| 218 NotificationType::LOGINS_CHANGED, | 221 NotificationType::LOGINS_CHANGED, |
| 219 Source<PasswordStore>(password_store_)); | 222 Source<PasswordStore>(password_store_)); |
| 220 } | 223 } |
| 221 | 224 |
| 222 } // namespace browser_sync | 225 } // namespace browser_sync |
| OLD | NEW |