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

Unified Diff: chrome/renderer/chrome_content_renderer_client.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/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 9413042481a3d32fe2a645ad8ce4239f426e50c5..18c56064abe71b148951f8e9db577599d5e807ba 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1538,11 +1538,11 @@ bool ChromeContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
return true;
}
- chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ version_info::Channel channel = chrome::VersionInfo::GetChannel();
// Allow dev channel APIs to be used on "Canary", "Dev", and "Unknown"
// releases of Chrome. Permitting "Unknown" allows these APIs to be used on
// Chromium builds as well.
- return channel <= chrome::VersionInfo::CHANNEL_DEV;
+ return channel <= version_info::CHANNEL_DEV;
#else
return false;
#endif
@@ -1571,8 +1571,8 @@ bool ChromeContentRendererClient::IsPluginAllowedToUseCompositorAPI(
if (IsExtensionOrSharedModuleWhitelisted(url, allowed_compositor_origins_))
return true;
- chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
- return channel <= chrome::VersionInfo::CHANNEL_DEV;
+ version_info::Channel channel = chrome::VersionInfo::GetChannel();
+ return channel <= version_info::CHANNEL_DEV;
#else
return false;
#endif

Powered by Google App Engine
This is Rietveld 408576698