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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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: mojo/public/cpp/application/lib/application_runner.cc
diff --git a/mojo/public/cpp/application/lib/application_runner.cc b/mojo/public/cpp/application/lib/application_runner.cc
deleted file mode 100644
index dec744891c3b340b6c46ba1d226ebdcc63873ae9..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/application/lib/application_runner.cc
+++ /dev/null
@@ -1,39 +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_runner.h"
-
-#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"
-
-namespace mojo {
-
-// static
-void ApplicationImpl::Terminate() {
- RunLoop::current()->Quit();
-}
-
-ApplicationRunner::ApplicationRunner(ApplicationDelegate* delegate)
- : delegate_(delegate) {
-}
-ApplicationRunner::~ApplicationRunner() {
- assert(!delegate_);
-}
-
-MojoResult ApplicationRunner::Run(MojoHandle shell_handle) {
- Environment env;
- {
- RunLoop loop;
- ApplicationImpl app(delegate_, shell_handle);
- loop.Run();
- }
-
- delete delegate_;
- delegate_ = nullptr;
- return MOJO_RESULT_OK;
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/public/cpp/application/lib/application_impl.cc ('k') | mojo/public/cpp/application/lib/application_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698