Roll src/third_party/skia 6f94076:f94fa71
[chromium-blink-merge.git] / content / app / content_main.cc
blob77277ff64800ec3dda88b311b032a674d55ce490
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"
10 namespace content {
12 int ContentMain(const ContentMainParams& params) {
13 scoped_ptr<ContentMainRunner> main_runner(ContentMainRunner::Create());
15 int exit_code = main_runner->Initialize(params);
16 if (exit_code >= 0)
17 return exit_code;
19 exit_code = main_runner->Run();
21 main_runner->Shutdown();
23 return exit_code;
26 } // namespace content