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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 634583003: Simplify VersionInfo code, avoid hitting sandbox IPC constantly on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: linux include Created 6 years, 2 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/common/BUILD.gn ('k') | chrome/common/chrome_content_client_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 9e46c3a397ae4409903671bb5bd16f45fdea3b2a..d8da8c7381f9cee15ce6c3dd93fa9fd1b1a59b17 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -411,8 +411,7 @@ bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) {
std::string GetProduct() {
chrome::VersionInfo version_info;
- return version_info.is_valid() ?
- version_info.ProductNameAndVersionForUserAgent() : std::string();
+ return version_info.ProductNameAndVersionForUserAgent();
}
} // namespace
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/chrome_content_client_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698