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

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: mac, cros 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
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

Powered by Google App Engine
This is Rietveld 408576698