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

Unified Diff: chrome/profiling/profiling_main.cc

Issue 2941823002: Add flags and skeleton for profiling process. (Closed)
Patch Set: Fix header Created 3 years, 6 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 | « chrome/profiling/profiling_main.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/profiling/profiling_main.cc
diff --git a/chrome/profiling/profiling_main.cc b/chrome/profiling/profiling_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fd582b6fa724965808fe30ae61ffd9626a539549
--- /dev/null
+++ b/chrome/profiling/profiling_main.cc
@@ -0,0 +1,25 @@
+// Copyright 2017 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 "chrome/profiling/profiling_main.h"
+
+#include "base/command_line.h"
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
+#include "base/win/win_util.h"
+#endif
+
+namespace profiling {
+
+int ProfilingMain(const base::CommandLine& cmdline) {
+ // TODO(brettw) implement this.
+
+#if defined(OS_WIN)
+ base::win::SetShouldCrashOnProcessDetach(false);
+#endif
+ return 0;
+}
+
+} // namespace profiling
« no previous file with comments | « chrome/profiling/profiling_main.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698