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

Unified Diff: chrome/install_static/install_details.h

Issue 2530163002: Make the name of the event source for SYSLOG configurable. (Closed)
Patch Set: Fix includes and nits. Created 4 years, 1 month 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 7b6d90d85cd8aa62123f1cf27970a8bd8d1a7c8c..21d786ce547f23e7656c5e14951c44eb49f7ad4b 100644
--- a/chrome/install_static/install_details.h
+++ b/chrome/install_static/install_details.h
@@ -9,11 +9,16 @@
#include <string>
#include "chrome/install_static/install_constants.h"
+#include "chrome/install_static/install_modes.h"
namespace install_static {
class PrimaryInstallDetails;
+// Re-declare the constants from install_modes.h to avoid cyclical dependency.
grt (UTC plus 2) 2016/11/29 12:40:24 nit: remove this now? :-)
+// extern const wchar_t kProductPathName[];
+// extern const size_t kProductPathNameLength;
+
// Details relating to how Chrome is installed. This class and
// PrimaryInstallDetails (below) are used in tandem so that one instance of the
// latter may be initialized early during process startup and then shared with
@@ -72,6 +77,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());
+ }
+
// The app GUID with which this mode is registered with Google Update, or an
// empty string if this brand does not integrate with Google Update.
const wchar_t* app_guid() const { return payload_->mode->app_guid; }
« 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