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

Side by Side Diff: chrome/browser/ui/webui/version_ui.cc

Issue 2157563002: Add a PGO tag for the PGO builds in chrome://version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the VS2013 string. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/chrome_features.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/version_ui.h" 5 #include "chrome/browser/ui/webui/version_ui.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/message_formatter.h" 8 #include "base/i18n/message_formatter.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 IDS_VERSION_UI_PROFILE_PATH); 131 IDS_VERSION_UI_PROFILE_PATH);
132 html_source->AddString(version_ui::kProfilePath, std::string()); 132 html_source->AddString(version_ui::kProfilePath, std::string());
133 133
134 html_source->AddLocalizedString(version_ui::kVariationsName, 134 html_source->AddLocalizedString(version_ui::kVariationsName,
135 IDS_VERSION_UI_VARIATIONS); 135 IDS_VERSION_UI_VARIATIONS);
136 136
137 #if defined(OS_WIN) 137 #if defined(OS_WIN)
138 #if defined(__clang__) 138 #if defined(__clang__)
139 html_source->AddString("compiler", "clang"); 139 html_source->AddString("compiler", "clang");
140 #elif defined(_MSC_VER) && _MSC_VER == 1900 140 #elif defined(_MSC_VER) && _MSC_VER == 1900
141 #if BUILDFLAG(PGO_BUILD)
142 html_source->AddString("compiler", "MSVC 2015 (PGO)");
143 #else
141 html_source->AddString("compiler", "MSVC 2015"); 144 html_source->AddString("compiler", "MSVC 2015");
142 #elif defined(_MSC_VER) && _MSC_VER == 1800 145 #endif
143 html_source->AddString("compiler", "MSVC 2013");
144 #elif defined(_MSC_VER) 146 #elif defined(_MSC_VER)
145 #error "Unsupported version of MSVC." 147 #error "Unsupported version of MSVC."
146 #else 148 #else
147 html_source->AddString("compiler", "Unknown"); 149 html_source->AddString("compiler", "Unknown");
148 #endif 150 #endif
149 #endif // defined(OS_WIN) 151 #endif // defined(OS_WIN)
150 152
151 html_source->SetJsonPath("strings.js"); 153 html_source->SetJsonPath("strings.js");
152 html_source->AddResourcePath(version_ui::kVersionJS, IDR_VERSION_UI_JS); 154 html_source->AddResourcePath(version_ui::kVersionJS, IDR_VERSION_UI_JS);
153 html_source->AddResourcePath(version_ui::kAboutVersionCSS, 155 html_source->AddResourcePath(version_ui::kAboutVersionCSS,
(...skipping 18 matching lines...) Expand all
172 // Set up the chrome://theme/ source. 174 // Set up the chrome://theme/ source.
173 ThemeSource* theme = new ThemeSource(profile); 175 ThemeSource* theme = new ThemeSource(profile);
174 content::URLDataSource::Add(profile, theme); 176 content::URLDataSource::Add(profile, theme);
175 #endif 177 #endif
176 178
177 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); 179 WebUIDataSource::Add(profile, CreateVersionUIDataSource());
178 } 180 }
179 181
180 VersionUI::~VersionUI() { 182 VersionUI::~VersionUI() {
181 } 183 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_features.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698