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

Unified Diff: mojo/environment/scoped_chromium_init.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 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 | « mojo/environment/scoped_chromium_init.h ('k') | mojo/public/cpp/application/lib/run_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/scoped_chromium_init.cc
diff --git a/mojo/environment/scoped_chromium_init.cc b/mojo/environment/scoped_chromium_init.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9917d5490209a685b546ce5cd53eca94a281f7a5
--- /dev/null
+++ b/mojo/environment/scoped_chromium_init.cc
@@ -0,0 +1,22 @@
+// Copyright 2016 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/environment/scoped_chromium_init.h"
+
+#include "base/command_line.h"
+#include "base/debug/stack_trace.h"
+
+namespace mojo {
+
+ScopedChromiumInit::ScopedChromiumInit() {
+ base::CommandLine::Init(0, nullptr);
+
+#if !defined(NDEBUG) && !defined(OS_NACL)
+ base::debug::EnableInProcessStackDumping();
+#endif
+}
+
+ScopedChromiumInit::~ScopedChromiumInit() {}
+
+} // namespace mojo
« no previous file with comments | « mojo/environment/scoped_chromium_init.h ('k') | mojo/public/cpp/application/lib/run_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698