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 "ios/chrome/browser/reading_list/reading_list_model_impl.h" | 5 #include "ios/chrome/browser/reading_list/reading_list_model_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/prefs/pref_service.h" | 10 #include "components/prefs/pref_service.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 } | 340 } |
341 | 341 |
342 bool ReadingListModelImpl::LoadPersistentHasUnseen() { | 342 bool ReadingListModelImpl::LoadPersistentHasUnseen() { |
343 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 343 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
344 if (!pref_service_) { | 344 if (!pref_service_) { |
345 return false; | 345 return false; |
346 } | 346 } |
347 return pref_service_->GetBoolean( | 347 return pref_service_->GetBoolean( |
348 reading_list::prefs::kReadingListHasUnseenEntries); | 348 reading_list::prefs::kReadingListHasUnseenEntries); |
349 } | 349 } |
| 350 |
| 351 syncer::ModelTypeService* ReadingListModelImpl::GetModelTypeService() { |
| 352 return storage_layer_->GetModelTypeService(); |
| 353 } |
OLD | NEW |