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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1257633002: Componentize VersionInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lost changes to //chrome/common/BUILD.gn and fix compilation of app_window_intercept_all_keys_u… Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 7c3e331ab5e2335dba3c9d3e5832c9cd9b72b6c7..04234e96c185c322957dbfa25c79bbee21c5ba93 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -676,27 +676,27 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
// Now that field trials have been created, initializes metrics recording.
metrics->InitializeMetricsRecordingState();
- const chrome::VersionInfo::Channel channel =
+ const version_info::Channel channel =
chrome::VersionInfo::GetChannel();
// TODO(dalecurtis): Remove these checks and enable for all channels once we
// track down the root causes of crbug.com/422522 and crbug.com/478932.
- if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN ||
- channel == chrome::VersionInfo::CHANNEL_CANARY ||
- channel == chrome::VersionInfo::CHANNEL_DEV) {
+ if (channel == version_info::CHANNEL_UNKNOWN ||
+ channel == version_info::CHANNEL_CANARY ||
+ channel == version_info::CHANNEL_DEV) {
media::AudioManager::EnableHangMonitor();
}
// Enable profiler instrumentation depending on the channel.
switch (channel) {
- case chrome::VersionInfo::CHANNEL_UNKNOWN:
- case chrome::VersionInfo::CHANNEL_CANARY:
+ case version_info::CHANNEL_UNKNOWN:
+ case version_info::CHANNEL_CANARY:
tracked_objects::ScopedTracker::Enable();
break;
- case chrome::VersionInfo::CHANNEL_DEV:
- case chrome::VersionInfo::CHANNEL_BETA:
- case chrome::VersionInfo::CHANNEL_STABLE:
+ case version_info::CHANNEL_DEV:
+ case version_info::CHANNEL_BETA:
+ case version_info::CHANNEL_STABLE:
// Don't enable instrumentation.
break;
}

Powered by Google App Engine
This is Rietveld 408576698