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

Side by Side Diff: components/reading_list/ios/reading_list_model_impl.cc

Issue 2568023002: Fix inheritance in Reading List (Closed)
Patch Set: clean includes Created 4 years 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 "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
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 }
OLDNEW
« no previous file with comments | « components/reading_list/ios/BUILD.gn ('k') | components/reading_list/ios/reading_list_model_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698