OLD | NEW |
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 |
OLD | NEW |