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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_model_bridge_observer.mm

Issue 2746473003: [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks:bookmarks to ARC. (Closed)
Patch Set: annotate weaks 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/bookmarks/bookmark_model_bridge_observer.h" 5 #include "ios/chrome/browser/ui/bookmarks/bookmark_model_bridge_observer.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/bookmarks/browser/bookmark_model.h" 10 #include "components/bookmarks/browser/bookmark_model.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support."
14 #endif
15
12 namespace bookmarks { 16 namespace bookmarks {
13 17
14 BookmarkModelBridge::BookmarkModelBridge( 18 BookmarkModelBridge::BookmarkModelBridge(
15 id<BookmarkModelBridgeObserver> observer, 19 id<BookmarkModelBridgeObserver> observer,
16 BookmarkModel* model) 20 BookmarkModel* model)
17 : observer_(observer), model_(model) { 21 : observer_(observer), model_(model) {
18 DCHECK(observer_); 22 DCHECK(observer_);
19 DCHECK(model_); 23 DCHECK(model_);
20 model_->AddObserver(this); 24 model_->AddObserver(this);
21 } 25 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 [observer_ bookmarkNodeChildrenChanged:node]; 84 [observer_ bookmarkNodeChildrenChanged:node];
81 } 85 }
82 86
83 void BookmarkModelBridge::BookmarkAllUserNodesRemoved( 87 void BookmarkModelBridge::BookmarkAllUserNodesRemoved(
84 BookmarkModel* model, 88 BookmarkModel* model,
85 const std::set<GURL>& removed_urls) { 89 const std::set<GURL>& removed_urls) {
86 [observer_ bookmarkModelRemovedAllNodes]; 90 [observer_ bookmarkModelRemovedAllNodes];
87 } 91 }
88 92
89 } // namespace bookmarks 93 } // namespace bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698