OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/reading_list/ios/reading_list_store.h" | 5 #include "components/reading_list/core/reading_list_store.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/time/clock.h" | 13 #include "base/time/clock.h" |
14 #include "components/reading_list/ios/proto/reading_list.pb.h" | 14 #include "components/reading_list/core/proto/reading_list.pb.h" |
15 #include "components/reading_list/ios/reading_list_model_impl.h" | 15 #include "components/reading_list/core/reading_list_model_impl.h" |
16 #include "components/sync/model/entity_change.h" | 16 #include "components/sync/model/entity_change.h" |
17 #include "components/sync/model/metadata_batch.h" | 17 #include "components/sync/model/metadata_batch.h" |
18 #include "components/sync/model/metadata_change_list.h" | 18 #include "components/sync/model/metadata_change_list.h" |
19 #include "components/sync/model/model_type_change_processor.h" | 19 #include "components/sync/model/model_type_change_processor.h" |
20 #include "components/sync/model/mutable_data_batch.h" | 20 #include "components/sync/model/mutable_data_batch.h" |
21 #include "components/sync/model_impl/accumulating_metadata_change_list.h" | 21 #include "components/sync/model_impl/accumulating_metadata_change_list.h" |
22 #include "components/sync/protocol/model_type_state.pb.h" | 22 #include "components/sync/protocol/model_type_state.pb.h" |
23 | 23 |
24 ReadingListStore::ReadingListStore( | 24 ReadingListStore::ReadingListStore( |
25 StoreFactoryFunction create_store_callback, | 25 StoreFactoryFunction create_store_callback, |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 if (rhs.first_read_time_us() == 0 && lhs.first_read_time_us() != 0) { | 455 if (rhs.first_read_time_us() == 0 && lhs.first_read_time_us() != 0) { |
456 return false; | 456 return false; |
457 } | 457 } |
458 if (rhs.first_read_time_us() > lhs.first_read_time_us() && | 458 if (rhs.first_read_time_us() > lhs.first_read_time_us() && |
459 lhs.first_read_time_us() != 0) { | 459 lhs.first_read_time_us() != 0) { |
460 return false; | 460 return false; |
461 } | 461 } |
462 } | 462 } |
463 return true; | 463 return true; |
464 } | 464 } |
OLD | NEW |