blob: 4e2454e018df6fabaeee91e52712735ac0b76b2d [file] [log] [blame]
// Copyright 2014 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/web_view/internal/web_view_web_main_delegate.h"
#import "base/mac/bundle_locations.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
// Dummy class used to locate the containing NSBundle.
@interface CWVBundleLocator : NSObject
@implementation CWVBundleLocator
namespace ios_web_view {
WebViewWebMainDelegate::WebViewWebMainDelegate() {}
WebViewWebMainDelegate::~WebViewWebMainDelegate() = default;
void WebViewWebMainDelegate::BasicStartupComplete() {
[NSBundle bundleForClass:[CWVBundleLocator class]]);
} // namespace ios_web_view