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

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

Issue 2746473003: [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks:bookmarks to ARC. (Closed)
Patch Set: fix test 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/undo_manager_bridge_observer.h" 5 #include "ios/chrome/browser/ui/bookmarks/undo_manager_bridge_observer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 namespace bookmarks { 13 namespace bookmarks {
10 UndoManagerBridge::UndoManagerBridge(id<UndoManagerBridgeObserver> observer) 14 UndoManagerBridge::UndoManagerBridge(id<UndoManagerBridgeObserver> observer)
11 : observer_(observer) { 15 : observer_(observer) {
12 DCHECK(observer); 16 DCHECK(observer);
13 } 17 }
14 18
15 void UndoManagerBridge::OnUndoManagerStateChange() { 19 void UndoManagerBridge::OnUndoManagerStateChange() {
16 [observer_ undoManagerChanged]; 20 [observer_ undoManagerChanged];
17 } 21 }
18 } // namespace bookmarks 22 } // namespace bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698