| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/sync/glue/bookmark_model_associator.h" | 5 #include "chrome/browser/sync/glue/bookmark_model_associator.h" |
| 6 | 6 |
| 7 #include <stack> | 7 #include <stack> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/bookmarks/bookmark_model.h" | 16 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/sync/glue/bookmark_change_processor.h" | 18 #include "chrome/browser/sync/glue/bookmark_change_processor.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "sync/api/sync_error.h" | 20 #include "sync/api/sync_error.h" |
| 21 #include "sync/internal_api/public/read_node.h" | 21 #include "sync/internal_api/public/read_node.h" |
| 22 #include "sync/internal_api/public/read_transaction.h" | 22 #include "sync/internal_api/public/read_transaction.h" |
| 23 #include "sync/internal_api/public/write_node.h" | 23 #include "sync/internal_api/public/write_node.h" |
| 24 #include "sync/internal_api/public/write_transaction.h" | 24 #include "sync/internal_api/public/write_transaction.h" |
| 25 #include "sync/syncable/write_transaction.h" | 25 #include "sync/syncable/syncable_write_transaction.h" |
| 26 #include "sync/util/cryptographer.h" | 26 #include "sync/util/cryptographer.h" |
| 27 #include "sync/util/data_type_histogram.h" | 27 #include "sync/util/data_type_histogram.h" |
| 28 | 28 |
| 29 using content::BrowserThread; | 29 using content::BrowserThread; |
| 30 | 30 |
| 31 namespace browser_sync { | 31 namespace browser_sync { |
| 32 | 32 |
| 33 // The sync protocol identifies top-level entities by means of well-known tags, | 33 // The sync protocol identifies top-level entities by means of well-known tags, |
| 34 // which should not be confused with titles. Each tag corresponds to a | 34 // which should not be confused with titles. Each tag corresponds to a |
| 35 // singleton instance of a particular top-level node in a user's share; the | 35 // singleton instance of a particular top-level node in a user's share; the |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 UMA_HISTOGRAM_ENUMERATION("Sync.LocalModelOutOfSync", | 606 UMA_HISTOGRAM_ENUMERATION("Sync.LocalModelOutOfSync", |
| 607 syncer::BOOKMARKS, syncer::MODEL_TYPE_COUNT); | 607 syncer::BOOKMARKS, syncer::MODEL_TYPE_COUNT); |
| 608 // Clear version on bookmark model so that we only report error once. | 608 // Clear version on bookmark model so that we only report error once. |
| 609 bookmark_model_->DeleteNodeMetaInfo(bookmark_model_->root_node(), | 609 bookmark_model_->DeleteNodeMetaInfo(bookmark_model_->root_node(), |
| 610 kBookmarkTransactionVersionKey); | 610 kBookmarkTransactionVersionKey); |
| 611 } | 611 } |
| 612 } | 612 } |
| 613 } | 613 } |
| 614 | 614 |
| 615 } // namespace browser_sync | 615 } // namespace browser_sync |
| OLD | NEW |