Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: ios/chrome/browser/reading_list/reading_list_model_impl.cc

Issue 2398233003: with sync (Closed)
Patch Set: done Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698