Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1423)

Unified Diff: athena/main/athena_main.cc

Issue 270763002: Minimal athena shell main (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/main/DEPS ('k') | athena/main/athena_main.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « athena/main/DEPS ('k') | athena/main/athena_main.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698