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

Side by Side Diff: ios/chrome/browser/share_extension/share_extension_service.mm

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback 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 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/share_extension/share_extension_service.h"
6
5 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
6 #include "components/bookmarks/browser/bookmark_model.h" 8 #include "components/bookmarks/browser/bookmark_model.h"
7 #include "components/reading_list/ios/reading_list_model.h" 9 #include "components/reading_list/core/reading_list_model.h"
8 #include "ios/chrome/browser/share_extension/share_extension_item_receiver.h" 10 #include "ios/chrome/browser/share_extension/share_extension_item_receiver.h"
9 #include "ios/chrome/browser/share_extension/share_extension_service.h"
10 11
11 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support." 13 #error "This file requires ARC support."
13 #endif 14 #endif
14 15
15 ShareExtensionService::ShareExtensionService( 16 ShareExtensionService::ShareExtensionService(
16 bookmarks::BookmarkModel* bookmark_model, 17 bookmarks::BookmarkModel* bookmark_model,
17 ReadingListModel* reading_list_model) 18 ReadingListModel* reading_list_model)
18 : reading_list_model_(reading_list_model), 19 : reading_list_model_(reading_list_model),
19 reading_list_model_loaded_(false), 20 reading_list_model_loaded_(false),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 this->AnyModelLoaded(); 55 this->AnyModelLoaded();
55 } 56 }
56 57
57 void ShareExtensionService::AnyModelLoaded() { 58 void ShareExtensionService::AnyModelLoaded() {
58 if (reading_list_model_loaded_ && bookmark_model_loaded_) { 59 if (reading_list_model_loaded_ && bookmark_model_loaded_) {
59 [[ShareExtensionItemReceiver sharedInstance] 60 [[ShareExtensionItemReceiver sharedInstance]
60 setBookmarkModel:bookmark_model_ 61 setBookmarkModel:bookmark_model_
61 readingListModel:reading_list_model_]; 62 readingListModel:reading_list_model_];
62 } 63 }
63 } 64 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/share_extension/share_extension_service.h ('k') | ios/chrome/browser/sync/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698