Commit b0264889 authored by pmonette's avatar pmonette Committed by Commit bot

Fixed a bug with the default flow on Windows 8.1

The Windows settings page was opened instead of the intent picker.

BUG=606928

Review URL: https://codereview.chromium.org/1920033004

Cr-Commit-Position: refs/heads/master@{#389896}
parent b06896ff
...@@ -1842,10 +1842,10 @@ bool ShellUtil::CanMakeChromeDefaultUnattended() { ...@@ -1842,10 +1842,10 @@ bool ShellUtil::CanMakeChromeDefaultUnattended() {
ShellUtil::InteractiveSetDefaultMode ShellUtil::GetInteractiveSetDefaultMode() { ShellUtil::InteractiveSetDefaultMode ShellUtil::GetInteractiveSetDefaultMode() {
DCHECK(!CanMakeChromeDefaultUnattended()); DCHECK(!CanMakeChromeDefaultUnattended());
if (base::win::GetVersion() == base::win::VERSION_WIN8) if (base::win::GetVersion() >= base::win::VERSION_WIN10)
return InteractiveSetDefaultMode::INTENT_PICKER; return InteractiveSetDefaultMode::SYSTEM_SETTINGS;
return InteractiveSetDefaultMode::SYSTEM_SETTINGS; return InteractiveSetDefaultMode::INTENT_PICKER;
} }
bool ShellUtil::MakeChromeDefault(BrowserDistribution* dist, bool ShellUtil::MakeChromeDefault(BrowserDistribution* dist,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment