Index: chrome/installer/util/shell_util.cc |
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc |
index ef7177ec96fb95b042d23b8defb0c757c4323347..2109a3c8eec9efd420f497759d9bd3938d8f1f1d 100644 |
--- a/chrome/installer/util/shell_util.cc |
+++ b/chrome/installer/util/shell_util.cc |
@@ -1161,12 +1161,9 @@ bool ShellUtil::RegisterChromeForProtocol(BrowserDistribution* dist, |
if (IsUserAnAdmin()) { |
// We can do this operation directly. |
- // If we're not registered at all, try to register. If that fails |
- // we should give up. |
- if (!IsChromeRegistered(dist, chrome_exe, suffix) && |
- !RegisterChromeBrowser(dist, chrome_exe, suffix, false)) { |
+ // First, make sure Chrome is fully registered on this machine. |
+ if (!RegisterChromeBrowser(dist, chrome_exe, suffix, false)) |
return false; |
- } |
// Write in the capabillity for the protocol. |
std::list<RegistryEntry*> entries; |