| Index: chrome/installer/util/shell_util.cc
|
| diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
|
| index 850f3c1991a7a4cc660283e085778bdbbe967043..9ab382316f0f2f076e74fe252a9967dfeda19a97 100644
|
| --- a/chrome/installer/util/shell_util.cc
|
| +++ b/chrome/installer/util/shell_util.cc
|
| @@ -1194,12 +1194,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;
|
|
|