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

Unified Diff: chrome_elf/chrome_elf_util.h

Issue 154653002: Breakpad coverage for chrome_elf start up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests on chromium builds Created 6 years, 10 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_elf/chrome_elf_main.cc ('k') | chrome_elf/chrome_elf_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/chrome_elf_util.h
diff --git a/chrome_elf/chrome_elf_util.h b/chrome_elf/chrome_elf_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..28abf87bde58e84404f863fefd683af4b489890b
--- /dev/null
+++ b/chrome_elf/chrome_elf_util.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef CHROME_ELF_CHROME_ELF_UTIL_H_
+#define CHROME_ELF_CHROME_ELF_UTIL_H_
+
+#include "base/strings/string16.h"
+
+// Returns true if |exe_path| points to a Chrome installed in an SxS
+// installation.
+bool IsCanary(const wchar_t* exe_path);
+
+// Returns true if |exe_path| points to a per-user level Chrome installation.
+bool IsSystemInstall(const wchar_t* exe_path);
+
+// Returns true if current installation of Chrome is a multi-install.
+bool IsMultiInstall(bool is_system_install);
+
+// Returns true if usage stats collecting is enabled for this user.
+bool AreUsageStatsEnabled(const wchar_t* exe_path);
+
+// Returns true if a policy is in effect. |breakpad_enabled| will be set to true
+// if stats collecting is permitted by this policy and false if not.
+bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled);
+
+#endif // CHROME_ELF_CHROME_ELF_UTIL_H_
« no previous file with comments | « chrome_elf/chrome_elf_main.cc ('k') | chrome_elf/chrome_elf_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698