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

Unified Diff: chrome/browser/ui/webui/version_ui.cc

Issue 2797433002: Include Google Update integration details in crash keys and about:version. (Closed)
Patch Set: Created 3 years, 9 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
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,

Powered by Google App Engine
This is Rietveld 408576698