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

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
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..146522784cfb9503716e6a20cadc06e36165609f
--- /dev/null
+++ b/athena/main/athena_main.cc
@@ -0,0 +1,30 @@
+// 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);
+};
+
+int main(int argc, const char** argv) {
+ AthenaBrowserMainDelegate browser_main_delegate;
+ apps::ShellMainDelegate delegate(&browser_main_delegate);
+ content::ContentMainParams params(&delegate);
+
+ params.argc = argc;
+ params.argv = argv;
+
+ return content::ContentMain(params);
+}

Powered by Google App Engine
This is Rietveld 408576698