From 9b05174501e3d9da6da4a2473aa666c48366401b Mon Sep 17 00:00:00 2001 From: "gwilson@google.com" Date: Fri, 6 Feb 2009 20:49:35 +0000 Subject: 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 --- chrome/browser/first_run.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome') 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); } -- cgit v1.1