diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-18 17:10:36 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-18 17:10:36 +0000 |
commit | cb31f7839efbc1a5afb96656047aacfcd0cc643c (patch) | |
tree | 280b9cc6e5fed78350359dfa253f8d4af2abc319 | |
parent | c3450b0bcb02602a35a194dc243dc0d316cc9d88 (diff) | |
download | chromium_src-cb31f7839efbc1a5afb96656047aacfcd0cc643c.zip chromium_src-cb31f7839efbc1a5afb96656047aacfcd0cc643c.tar.gz chromium_src-cb31f7839efbc1a5afb96656047aacfcd0cc643c.tar.bz2 |
If the "SpecialBuild" string exists in the version resource of chrome.dll and is non-empty, include it as a custom entry in the crash dump.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/7399006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92864 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/breakpad_win.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index f2b29ad..4e226e5 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -95,6 +95,7 @@ google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, version_info(FileVersionInfo::CreateFileVersionInfo(FilePath(dll_path))); std::wstring version, product; + std::wstring special_build; if (version_info.get()) { // Get the information from the file. version = version_info->product_version(); @@ -107,6 +108,8 @@ google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, } else { product = version_info->product_short_name(); } + + special_build = version_info->special_build(); } else { // No version info found. Make up the values. product = L"Chrome"; @@ -127,6 +130,10 @@ google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, g_custom_entries->push_back( google_breakpad::CustomInfoEntry(L"ptype", type.c_str())); + if (!special_build.empty()) + g_custom_entries->push_back( + google_breakpad::CustomInfoEntry(L"special", special_build.c_str())); + g_num_of_extensions_offset = g_custom_entries->size(); g_custom_entries->push_back( google_breakpad::CustomInfoEntry(L"num-extensions", L"N/A")); |