|  | // 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 |