| 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_model_impl.h" | 5 #include "components/reading_list/ios/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 "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 return false; | 397 return false; |
| 398 } | 398 } |
| 399 return pref_service_->GetBoolean( | 399 return pref_service_->GetBoolean( |
| 400 reading_list::prefs::kReadingListHasUnseenEntries); | 400 reading_list::prefs::kReadingListHasUnseenEntries); |
| 401 } | 401 } |
| 402 | 402 |
| 403 syncer::ModelTypeSyncBridge* ReadingListModelImpl::GetModelTypeSyncBridge() { | 403 syncer::ModelTypeSyncBridge* ReadingListModelImpl::GetModelTypeSyncBridge() { |
| 404 DCHECK(loaded()); | 404 DCHECK(loaded()); |
| 405 if (!storage_layer_) | 405 if (!storage_layer_) |
| 406 return nullptr; | 406 return nullptr; |
| 407 return storage_layer_->GetModelTypeSyncBridge(); | 407 return storage_layer_.get(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 ReadingListModelStorage* ReadingListModelImpl::StorageLayer() { | 410 ReadingListModelStorage* ReadingListModelImpl::StorageLayer() { |
| 411 return storage_layer_.get(); | 411 return storage_layer_.get(); |
| 412 } | 412 } |
| OLD | NEW |