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

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

Issue 1800773002: Output the version of MSVS in chrome://version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add error Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 f9c70a1e20ca55507f8a401b2a9ddd9f10498f24..59e402a64bcedbeee292323bc3ad35f6e5ba0f3d 100644
--- a/chrome/browser/ui/webui/version_ui.cc
+++ b/chrome/browser/ui/webui/version_ui.cc
@@ -140,7 +140,13 @@ WebUIDataSource* CreateVersionUIDataSource() {
#if defined(__clang__)
html_source->AddString("compiler", "clang");
#else
- html_source->AddString("compiler", "MSVC");
+#if _MSC_VER == 1900
Dan Beam 2016/03/15 00:45:12 can this #else + #if be #elif and one less #endif?
Will Harris 2016/03/15 01:23:30 Done.
+ html_source->AddString("compiler", "MSVC 2015");
+#elif _MSC_VER == 1800
+ html_source->AddString("compiler", "MSVC 2013");
+#else
+#error "Unsupported version of MSVS compiler."
+#endif
#endif
#endif
Dan Beam 2016/03/15 00:45:12 please add #endif // defined(OS_WIN) to final #en
Dan Beam 2016/03/15 00:45:12 nit: is it possible to use mingw/g++ on windows?
Will Harris 2016/03/15 01:23:30 Done.
Will Harris 2016/03/15 01:23:30 pretty sure you can't use g++ except maybe for bas
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698