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

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..b90c8e9030cf77b9610701cc92d387ecb79a25df
--- /dev/null
+++ b/athena/main/athena_main.cc
@@ -0,0 +1,29 @@
+// 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/common/shell_delegate.h"
+#include "content/public/app/content_main.h"
+
+class AthenaShellDelegate : public apps::ShellDelegate {
+ public:
+ AthenaShellDelegate() {}
+ virtual ~AthenaShellDelegate() {}
+
+ virtual void Start(content::BrowserContext* context) OVERRIDE {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AthenaShellDelegate);
+};
+
+int main(int argc, const char** argv) {
+ AthenaShellDelegate shell_delegate;
+ apps::ShellMainDelegate delegate(&shell_delegate);
+ content::ContentMainParams params(&delegate);
+
+ params.argc = argc;
+ params.argv = argv;
+
+ return content::ContentMain(params);
+}

Powered by Google App Engine
This is Rietveld 408576698