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

Side by Side Diff: ios/chrome/browser/infobars/infobar_controller.mm

Issue 2596813002: Remove ChromeBrowserProvider::CreateInfoBarView() method. (Closed)
Patch Set: Created 3 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/infobars/infobar_controller.h" 5 #include "ios/chrome/browser/infobars/infobar_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h" 10 #import "ios/chrome/browser/ui/infobars/infobar_view_protocol.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support." 13 #error "This file requires ARC support."
14 #endif 14 #endif
15 15
16 @interface InfoBarController () { 16 @interface InfoBarController () {
17 UIView<InfoBarViewProtocol>* _infoBarView; 17 UIView<InfoBarViewProtocol>* _infoBarView;
18 } 18 }
19 @end 19 @end
20 20
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 - (void)removeView { 68 - (void)removeView {
69 [_infoBarView removeFromSuperview]; 69 [_infoBarView removeFromSuperview];
70 } 70 }
71 71
72 - (void)detachView { 72 - (void)detachView {
73 [_infoBarView resetDelegate]; 73 [_infoBarView resetDelegate];
74 _delegate = nullptr; 74 _delegate = nullptr;
75 } 75 }
76 76
77 @end 77 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698