blob: 88e4b9762190426903c6f35e5a8992c84ce457ce [file] [log] [blame]
// Copyright 2018 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 "base/fuchsia/service_directory.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "fuchsia/runners/common/web_content_runner.h"
int main(int argc, char** argv) {
base::MessageLoopForIO message_loop;
base::RunLoop run_loop;
WebContentRunner runner(base::fuchsia::ServiceDirectory::GetDefault(),
WebContentRunner::CreateDefaultWebContext());
// Run until there are no Components, or the last service client channel is
// closed.
// TODO(https://crbug.com/952560): Implement Components v2 graceful exit.
run_loop.Run();
return 0;
}