Index: athena/main/athena_main.cc |
diff --git a/athena/main/athena_main.cc b/athena/main/athena_main.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f9cccbe659266eb03950853f228494fa1dcb64ac |
--- /dev/null |
+++ b/athena/main/athena_main.cc |
@@ -0,0 +1,44 @@ |
+// Copyright 2014 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 "apps/shell/app/shell_main_delegate.h" |
+#include "apps/shell/browser/shell_browser_main_delegate.h" |
+#include "content/public/app/content_main.h" |
+ |
+class AthenaBrowserMainDelegate : public apps::ShellBrowserMainDelegate { |
+ public: |
+ AthenaBrowserMainDelegate() {} |
+ virtual ~AthenaBrowserMainDelegate() {} |
+ |
+ // apps::ShellBrowserMainDelegate: |
+ virtual void Start(content::BrowserContext* context) OVERRIDE {} |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AthenaBrowserMainDelegate); |
+}; |
+ |
+class AthenaMainDelegate : public apps::ShellMainDelegate { |
+ public: |
+ AthenaMainDelegate() {} |
+ virtual ~AthenaMainDelegate() {} |
+ |
+ private: |
+ // apps::ShellMainDelegate: |
+ virtual apps::ShellBrowserMainDelegate* CreateShellBrowserMainDelegate() |
+ OVERRIDE { |
+ return new AthenaBrowserMainDelegate(); |
+ } |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AthenaMainDelegate); |
+}; |
+ |
+int main(int argc, const char** argv) { |
+ AthenaMainDelegate delegate; |
+ content::ContentMainParams params(&delegate); |
+ |
+ params.argc = argc; |
+ params.argv = argv; |
+ |
+ return content::ContentMain(params); |
+} |