1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/app/content_main.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "content/public/app/content_main_runner.h"
12 int ContentMain(const ContentMainParams
& params
) {
13 scoped_ptr
<ContentMainRunner
> main_runner(ContentMainRunner::Create());
15 int exit_code
= main_runner
->Initialize(params
);
19 exit_code
= main_runner
->Run();
21 main_runner
->Shutdown();
26 } // namespace content