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

Unified Diff: chrome/install_static/install_util.cc

Issue 2799013002: Monitor crashpad_handler for crashes [sometimes] (Closed)
Patch Set: Address review feedback (scottmg) Created 3 years, 8 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/install_static/install_util.h ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/install_util.cc
diff --git a/chrome/install_static/install_util.cc b/chrome/install_static/install_util.cc
index 368692352ac108ab29ad493d8b324e85d8c9c793..7a54c7196a1ea001a008cc90e31fa8fe3415c316 100644
--- a/chrome/install_static/install_util.cc
+++ b/chrome/install_static/install_util.cc
@@ -20,6 +20,7 @@
#include "chrome/install_static/policy_path_parser.h"
#include "chrome/install_static/user_data_dir.h"
#include "chrome_elf/nt_registry/nt_registry.h"
+#include "components/version_info/channel.h"
namespace install_static {
@@ -561,6 +562,26 @@ void GetExecutableVersionDetails(const std::wstring& exe_path,
*channel_name = GetChromeChannelName();
}
+version_info::Channel GetChromeChannel() {
+#if defined(GOOGLE_CHROME_BUILD)
+ std::wstring channel_name(GetChromeChannelName());
+ if (channel_name.empty()) {
+ return version_info::Channel::STABLE;
+ }
+ if (channel_name == L"beta") {
+ return version_info::Channel::BETA;
+ }
+ if (channel_name == L"dev") {
+ return version_info::Channel::DEV;
+ }
+ if (channel_name == L"canary") {
+ return version_info::Channel::CANARY;
+ }
+#endif
+
+ return version_info::Channel::UNKNOWN;
+}
+
std::wstring GetChromeChannelName() {
return InstallDetails::Get().channel();
}
« no previous file with comments | « chrome/install_static/install_util.h ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698