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

Unified Diff: mojo/public/cpp/application/lib/mojo_main_standalone.cc

Issue 441853002: mojo: first take on removing mojo_main_{chromium,standalone}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « mojo/public/cpp/application/lib/mojo_main_chromium.cc ('k') | mojo/services/html_viewer/html_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/lib/mojo_main_standalone.cc
diff --git a/mojo/public/cpp/application/lib/mojo_main_standalone.cc b/mojo/public/cpp/application/lib/mojo_main_standalone.cc
deleted file mode 100644
index 6071b6b4f280aefe24b8b7ce3523f2c3341da880..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/application/lib/mojo_main_standalone.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// 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 "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/application_impl.h"
-#include "mojo/public/cpp/environment/environment.h"
-#include "mojo/public/cpp/utility/run_loop.h"
-
-extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
- MojoHandle shell_handle) {
- mojo::Environment env;
- mojo::ApplicationDelegate* delegate = NULL;
- {
- // We have to shut down the RunLoop before destroying the
- // ApplicationDelegate.
- mojo::RunLoop loop;
- delegate = mojo::ApplicationDelegate::Create();
- {
- mojo::ApplicationImpl app(delegate);
- app.BindShell(shell_handle);
- loop.Run();
- }
- }
- delete delegate;
-
- return MOJO_RESULT_OK;
-}
« no previous file with comments | « mojo/public/cpp/application/lib/mojo_main_chromium.cc ('k') | mojo/services/html_viewer/html_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698