summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorhuanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 15:58:37 +0000
committerhuanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 15:58:37 +0000
commit8d2704858e4d35f53dbafdc61536f66a6e66a80d (patch)
tree33e4c819742420520e1d6d609d4cc11b1b403239 /chrome/installer
parentf4c9ca2ca8946220496a05ca8e4f7b20b3ddc7c0 (diff)
downloadchromium_src-8d2704858e4d35f53dbafdc61536f66a6e66a80d.zip
chromium_src-8d2704858e4d35f53dbafdc61536f66a6e66a80d.tar.gz
chromium_src-8d2704858e4d35f53dbafdc61536f66a6e66a80d.tar.bz2
Setting oopcrashes=1 during install
BUG=54506 TEST=mini_installer.exe Review URL: http://codereview.chromium.org/3329013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/setup/install.cc4
-rw-r--r--chrome/installer/util/google_update_constants.cc1
-rw-r--r--chrome/installer/util/google_update_constants.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index 91ae412..04bca30 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -668,6 +668,10 @@ installer_util::InstallStatus InstallNewVersion(
product_name,
true); // overwrite name also
install_list->AddSetRegValueWorkItem(reg_root, version_key,
+ google_update::kRegOopcrashesField,
+ 1,
+ false); // set during first install
+ install_list->AddSetRegValueWorkItem(reg_root, version_key,
google_update::kRegVersionField,
new_version.GetString(),
true); // overwrite version
diff --git a/chrome/installer/util/google_update_constants.cc b/chrome/installer/util/google_update_constants.cc
index 8c1a2a4..aef9c0d 100644
--- a/chrome/installer/util/google_update_constants.cc
+++ b/chrome/installer/util/google_update_constants.cc
@@ -23,6 +23,7 @@ const wchar_t kRegLastCheckedField[] = L"LastChecked";
const wchar_t kRegMetricsId[] = L"metricsid";
const wchar_t kRegMSIField[] = L"msi";
const wchar_t kRegNameField[] = L"name";
+const wchar_t kRegOopcrashesField[] = L"oopcrashes";
const wchar_t kRegOldVersionField[] = L"opv";
const wchar_t kRegRenameCmdField[] = L"cmd";
const wchar_t kRegRLZBrandField[] = L"brand";
diff --git a/chrome/installer/util/google_update_constants.h b/chrome/installer/util/google_update_constants.h
index a8db2b5..b371de4 100644
--- a/chrome/installer/util/google_update_constants.h
+++ b/chrome/installer/util/google_update_constants.h
@@ -34,6 +34,7 @@ extern const wchar_t kRegLastCheckedField[];
extern const wchar_t kRegMetricsId[];
extern const wchar_t kRegMSIField[];
extern const wchar_t kRegNameField[];
+extern const wchar_t kRegOopcrashesField[];
extern const wchar_t kRegOldVersionField[];
extern const wchar_t kRegRenameCmdField[];
extern const wchar_t kRegRLZBrandField[];