Index: chrome/browser/ui/webui/version_ui.cc |
diff --git a/chrome/browser/ui/webui/version_ui.cc b/chrome/browser/ui/webui/version_ui.cc |
index efdde1cbad6dc897cd8037a496e856bc840383b7..9addc33aeee44c4a2f55b1ba6f7a155543a172bb 100644 |
--- a/chrome/browser/ui/webui/version_ui.cc |
+++ b/chrome/browser/ui/webui/version_ui.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/grit/browser_resources.h" |
#include "chrome/grit/chromium_strings.h" |
#include "chrome/grit/generated_resources.h" |
+#include "chrome/install_static/install_details.h" |
#include "components/grit/components_resources.h" |
#include "components/strings/grit/components_chromium_strings.h" |
#include "components/strings/grit/components_strings.h" |
@@ -158,6 +159,16 @@ WebUIDataSource* CreateVersionUIDataSource() { |
#endif |
#endif // defined(OS_WIN) |
scottmg
2017/04/03 18:02:54
Can just merge the new #if with this one.
grt (UTC plus 2)
2017/04/03 19:54:33
Done.
|
+#if defined(OS_WIN) |
+ base::string16 update_cohort_name = |
+ install_static::InstallDetails::Get().update_cohort_name(); |
+ if (!update_cohort_name.empty()) { |
+ html_source->AddString(version_ui::kUpdateCohortName, |
+ l10n_util::GetStringFUTF16( |
+ IDS_VERSION_UI_COHORT_NAME, update_cohort_name)); |
+ } |
+#endif // defined(OS_WIN) |
+ |
html_source->SetJsonPath("strings.js"); |
html_source->AddResourcePath(version_ui::kVersionJS, IDR_VERSION_UI_JS); |
html_source->AddResourcePath(version_ui::kAboutVersionCSS, |