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/autofill_profile_model_associator.h" | 5 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/sync/glue/autofill_profile_change_processor.h" | 8 #include "chrome/browser/sync/glue/autofill_profile_change_processor.h" |
9 #include "chrome/browser/sync/glue/do_optimistic_refresh_task.h" | 9 #include "chrome/browser/sync/glue/do_optimistic_refresh_task.h" |
10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 int64 sync_id) { | 463 int64 sync_id) { |
464 SyncIdToAutofillMap::const_iterator iter = id_map_inverse_.find(sync_id); | 464 SyncIdToAutofillMap::const_iterator iter = id_map_inverse_.find(sync_id); |
465 return iter == id_map_inverse_.end() ? NULL : &(iter->second); | 465 return iter == id_map_inverse_.end() ? NULL : &(iter->second); |
466 } | 466 } |
467 | 467 |
468 bool AutofillProfileModelAssociator::IsAbortPending() { | 468 bool AutofillProfileModelAssociator::IsAbortPending() { |
469 base::AutoLock lock(abort_association_pending_lock_); | 469 base::AutoLock lock(abort_association_pending_lock_); |
470 return abort_association_pending_; | 470 return abort_association_pending_; |
471 } | 471 } |
472 | 472 |
| 473 AutofillProfileModelAssociator::DataBundle::DataBundle() {} |
| 474 |
| 475 AutofillProfileModelAssociator::DataBundle::~DataBundle() { |
| 476 STLDeleteElements(&new_profiles); |
| 477 } |
| 478 |
| 479 |
473 } // namespace browser_sync | 480 } // namespace browser_sync |
474 | 481 |
OLD | NEW |