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; } |