blob: b595329d621f004ff9f14ae6be1ee869ad155ae4 [file]
// Copyright 2023 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/web/public/init/web_main_runner.h"
#import "build/blink_buildflags.h"
#import "ios/web/init/web_main_runner_impl.h"
#if BUILDFLAG(USE_BLINK)
#import "ios/web/content/init/ios_content_main_runner.h"
#endif // USE_BLINK
#import <memory>
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace web {
// static
WebMainRunner* WebMainRunner::Create() {
#if BUILDFLAG(USE_BLINK)
return new IOSContentMainRunner();
#else
return new WebMainRunnerImpl();
#endif // USE_BLINK
}
} // namespace web