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

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

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: last? Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_remover_helper.h" 5 #include "ios/chrome/browser/reading_list/reading_list_remover_helper.h"
6 6
7 #include "components/reading_list/ios/reading_list_model.h" 7 #include "components/reading_list/core/reading_list_model.h"
8 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 8 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
9 #include "ios/chrome/browser/reading_list/reading_list_download_service.h" 9 #include "ios/chrome/browser/reading_list/reading_list_download_service.h"
10 #include "ios/chrome/browser/reading_list/reading_list_download_service_factory. h" 10 #include "ios/chrome/browser/reading_list/reading_list_download_service_factory. h"
11 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h" 11 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h"
12 12
13 namespace reading_list { 13 namespace reading_list {
14 14
15 ReadingListRemoverHelper::ReadingListRemoverHelper( 15 ReadingListRemoverHelper::ReadingListRemoverHelper(
16 ios::ChromeBrowserState* browser_state) 16 ios::ChromeBrowserState* browser_state)
17 : ReadingListModelObserver(), scoped_observer_(this) { 17 : ReadingListModelObserver(), scoped_observer_(this) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 std::move(completion_).Run(false); 53 std::move(completion_).Run(false);
54 return; 54 return;
55 } 55 }
56 completion_ = std::move(completion); 56 completion_ = std::move(completion);
57 57
58 // Calls ReadingListModelLoaded if model is already loaded. 58 // Calls ReadingListModelLoaded if model is already loaded.
59 scoped_observer_.Add(reading_list_model_); 59 scoped_observer_.Add(reading_list_model_);
60 } 60 }
61 61
62 } // namespace reading_list 62 } // namespace reading_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698