blob: 1f5a7a7e9a6bd34277ea98d41c67dfa356389972 [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/ui/toolbar/secondary_toolbar_view_controller.h"
#import "base/check.h"
#import "ios/chrome/browser/shared/ui/util/layout_guide_names.h"
#import "ios/chrome/browser/shared/ui/util/util_swift.h"
#import "ios/chrome/browser/ui/toolbar/secondary_toolbar_view.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@implementation SecondaryToolbarViewController
- (void)loadView {
self.view =
[[SecondaryToolbarView alloc] initWithButtonFactory:self.buttonFactory];
DCHECK(self.layoutGuideCenter);
[self.layoutGuideCenter referenceView:self.view
underName:kSecondaryToolbarGuide];
}
@end