diff options
author | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 20:49:35 +0000 |
---|---|---|
committer | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 20:49:35 +0000 |
commit | 9b05174501e3d9da6da4a2473aa666c48366401b (patch) | |
tree | 2967962af470152a47fd5fce35c856bdb0dbaffa /chrome/browser/first_run.cc | |
parent | be645db8f6309a1e9a2670e3a23c7b2d7b403519 (diff) | |
download | chromium_src-9b05174501e3d9da6da4a2473aa666c48366401b.zip chromium_src-9b05174501e3d9da6da4a2473aa666c48366401b.tar.gz chromium_src-9b05174501e3d9da6da4a2473aa666c48366401b.tar.bz2 |
Fixes the EULA dialog to explicitly unset the usagestats flag if the checkbox is not selected. Before, the dialog would simply not modify the value already set.
BUG=7426
R=cpu
Review URL: http://codereview.chromium.org/21134
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.cc')
-rwxr-xr-x | chrome/browser/first_run.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc index 7bddfd0f..518218e 100755 --- a/chrome/browser/first_run.cc +++ b/chrome/browser/first_run.cc @@ -220,7 +220,10 @@ bool FirstRun::ProcessMasterPreferences( LOG(WARNING) << "EULA rejected. Fast exit."; ::ExitProcess(1); } - if (retcode == installer_util::EULA_ACCEPTED_OPT_IN) { + if (retcode == installer_util::EULA_ACCEPTED) { + LOG(INFO) << "EULA : no collection"; + GoogleUpdateSettings::SetCollectStatsConsent(false); + } else if (retcode == installer_util::EULA_ACCEPTED_OPT_IN) { LOG(INFO) << "EULA : collection consent"; GoogleUpdateSettings::SetCollectStatsConsent(true); } |