blob: 82f4c2313fc4ac1a0daf68538700fbe7d36624bd [file] [log] [blame]
// Copyright 2019 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.
#import "ios/chrome/browser/ui/omnibox/omnibox_icon_type.h"
#include "base/notreached.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
NSString* GetLocationBarSecurityIconTypeAssetName(
LocationBarSecurityIconType iconType) {
switch (iconType) {
case INFO:
return @"location_bar_connection_info";
case SECURE:
return @"location_bar_connection_secure";
case NOT_SECURE_WARNING:
return @"location_bar_connection_dangerous";
case LOCATION_BAR_SECURITY_ICON_TYPE_COUNT:
NOTREACHED();
return @"location_bar_connection_info";
}
}