Fix link in German terms of service.
[chromium-blink-merge.git] / content / shell / browser / shell_browser_main.cc
blobc75a0167f70e9e346595bf218f8369cec1eeff82
1 // Copyright 2013 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/shell/browser/shell_browser_main.h"
7 #include <iostream>
9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h"
12 #include "content/public/browser/browser_main_runner.h"
14 #if defined(OS_ANDROID)
15 #include "base/run_loop.h"
16 #endif
18 // Main routine for running as the Browser process.
19 int ShellBrowserMain(
20 const content::MainFunctionParams& parameters,
21 const scoped_ptr<content::BrowserMainRunner>& main_runner) {
22 int exit_code = main_runner->Initialize(parameters);
23 DCHECK_LT(exit_code, 0)
24 << "BrowserMainRunner::Initialize failed in ShellBrowserMain";
26 if (exit_code >= 0)
27 return exit_code;
29 #if !defined(OS_ANDROID)
30 exit_code = main_runner->Run();
32 main_runner->Shutdown();
33 #endif
35 return exit_code;