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

Unified Diff: chrome/install_static/install_details.h

Issue 2530163002: Make the name of the event source for SYSLOG configurable. (Closed)
Patch Set: Remove NOTREACHED and log suffix. Created 4 years 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/common/logging_chrome.cc ('k') | chrome/install_static/install_modes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/install_details.h
diff --git a/chrome/install_static/install_details.h b/chrome/install_static/install_details.h
index 926102eedfd59e160d7c073d1b15539403dd8a77..eca1f4b2c08970d63356bdeea52a6b88565b051d 100644
--- a/chrome/install_static/install_details.h
+++ b/chrome/install_static/install_details.h
@@ -9,6 +9,7 @@
#include <string>
#include "chrome/install_static/install_constants.h"
+#include "chrome/install_static/install_modes.h"
namespace install_static {
@@ -72,6 +73,13 @@ class InstallDetails {
return payload_->mode->install_suffix;
}
+ // Returns the full name of the installed product (e.g. "Chrome SxS" for
+ // canary chrome).
+ std::wstring install_full_name() const {
+ return std::wstring(kProductPathName, kProductPathNameLength)
+ .append(install_suffix());
+ }
+
const InstallConstants& mode() const { return *payload_->mode; }
// The app GUID with which this mode is registered with Google Update, or an
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | chrome/install_static/install_modes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698