If DefaultBrowserSettingEnabled set to false and there is the command line
commit86af4462b98b956599232b6c1e89ada0ccbaac45
authorpeletskyi <peletskyi@chromium.org>
Wed, 8 Apr 2015 14:13:00 +0000 (8 07:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 14:14:48 +0000 (8 14:14 +0000)
tree7c5019921240c81329d05cc8830e5140b5cff5eb
parent8666f86539a214bb7a981d41a08c462e08a3bda0
If DefaultBrowserSettingEnabled set to false and there is the command line
flag that makes chrome default browser, the flag beats Policy. This is wrong
behavior. Thus added the condition that checks policy before set chrome as
a default browser.

BUG=361527

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

Cr-Commit-Position: refs/heads/master@{#324224}
chrome/browser/chrome_browser_main.cc
chrome/browser/policy/policy_startup_browsertest.cc [new file with mode: 0644]
chrome/chrome_tests.gypi
chrome/common/chrome_result_codes.h