From 30c918084bac874b6cfaabb93f0bb2545c5354e2 Mon Sep 17 00:00:00 2001 From: "dmaclach@chromium.org" Date: Sat, 18 Dec 2010 00:40:17 +0000 Subject: Revert 69592 - file_version_info was not finding Mac values correctly. Changed file_version_info to find Mac values, and changed version_info to fail if values can't be found. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/5815001 TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/6017003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69601 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/service/net/service_url_request_context.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/service') diff --git a/chrome/service/net/service_url_request_context.cc b/chrome/service/net/service_url_request_context.cc index cd94482..7f589e0 100644 --- a/chrome/service/net/service_url_request_context.cc +++ b/chrome/service/net/service_url_request_context.cc @@ -86,6 +86,9 @@ std::string BuildOSCpuInfo() { std::string MakeUserAgentForServiceProcess() { std::string user_agent; chrome::VersionInfo version_info; + if (!version_info.is_valid()) { + DLOG(ERROR) << "Unable to create chrome::VersionInfo object"; + } std::string extra_version_info; if (!version_info.IsOfficialBuild()) extra_version_info = "-devel"; -- cgit v1.1