blob: a9df2e12466c22c90777a9e2a465911b687de4d5 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/chrome/browser/infobars/overlays/overlay_request_infobar_type_util.h"
#import "ios/chrome/browser/overlays/public/common/infobars/infobar_overlay_request_config.h"
#include "ios/chrome/browser/overlays/public/overlay_request.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
InfobarType GetOverlayRequestInfobarType(OverlayRequest* request) {
return request->GetConfig<InfobarOverlayRequestConfig>()->infobar_type();
}