From 4d562a7e2538a1396a4dbeae66aea33f4f4afcd3 Mon Sep 17 00:00:00 2001 From: "rahulk@google.com" Date: Tue, 5 Aug 2008 17:30:38 +0000 Subject: While uninstalling Chrome look for return codes from chrome.exe that indicate success instead of checking for failure codes. This will prevent us from uninstalling Chrome when chrome.exe process gets killed. BUG=1307273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@380 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/browser_main.cc') diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 057e254..686be7c 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -182,11 +182,11 @@ int DoUninstallTasks() { LOG(INFO) << "Executing uninstall actions"; ResultCodes::ExitCode ret = ResultCodes::NORMAL_EXIT; if (!FirstRun::RemoveSentinel()) - ret = ResultCodes::UNINSTALL_ERROR; + ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR; if (!FirstRun::RemoveChromeDesktopShortcut()) - ret = ResultCodes::UNINSTALL_ERROR; + ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR; if (!FirstRun::RemoveChromeQuickLaunchShortcut()) - ret = ResultCodes::UNINSTALL_ERROR; + ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR; return ret; } -- cgit v1.1