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

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: components/version_ui/OWNERS now own version_ui_strings.grdp Created 3 years, 8 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
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/common/crash_keys.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0d918144a1995f3ef7763d7c91454e2188f7f283 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"
@@ -156,6 +157,14 @@ WebUIDataSource* CreateVersionUIDataSource() {
#else
html_source->AddString(version_ui::kCompiler, "Unknown");
#endif
+
+ 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");
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/common/crash_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698