diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 22:40:31 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 22:40:31 +0000 |
commit | 963f999b74abc6adeb53159493b2969071cf42ef (patch) | |
tree | 5da30317180c7ae25bdc23cce5929acc54387dde /chrome/app/breakpad_win.cc | |
parent | 61d0979c531196a288173629bb169acee7bf8190 (diff) | |
download | chromium_src-963f999b74abc6adeb53159493b2969071cf42ef.zip chromium_src-963f999b74abc6adeb53159493b2969071cf42ef.tar.gz chromium_src-963f999b74abc6adeb53159493b2969071cf42ef.tar.bz2 |
Use 'ChromeFrame' product id instead of chrome for GCF launches
When chrome.exe is launched with --chrome-frame switch, we need
to gather any crashes in this mode under 'ChromeFrame' product
id under go/crash.
Since ChromeFrame exists only on windows, this change is limited
to breakpad_win.cc for now.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4847001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_win.cc')
-rw-r--r-- | chrome/app/breakpad_win.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index 308678e..863dda6 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -97,10 +97,16 @@ google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, std::wstring version, product; if (version_info.get()) { // Get the information from the file. - product = version_info->product_short_name(); version = version_info->product_version(); if (!version_info->is_official_build()) version.append(L"-devel"); + + const CommandLine& command = *CommandLine::ForCurrentProcess(); + if (command.HasSwitch(switches::kChromeFrame)) { + product = L"ChromeFrame"; + } else { + product = version_info->product_short_name(); + } } else { // No version info found. Make up the values. product = L"Chrome"; |