diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-02 07:18:30 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-02 07:18:30 +0000 |
commit | 48b47ffa7fc481b9aa281d93f9bfd88915f70e08 (patch) | |
tree | 5fead9e0be7f5132a836c0e6d7e953b37fe75d4a /chrome/browser/browser.cc | |
parent | ef18a8546a0cf6c3a6fde1a0b17d6cc37274e00a (diff) | |
download | chromium_src-48b47ffa7fc481b9aa281d93f9bfd88915f70e08.zip chromium_src-48b47ffa7fc481b9aa281d93f9bfd88915f70e08.tar.gz chromium_src-48b47ffa7fc481b9aa281d93f9bfd88915f70e08.tar.bz2 |
Relanding the following CL (it was breaking the UI tests because a
NOTREACHED() would be triggered in that case).
If Chrome is not the default browser, tell the user, unless:
- it is the first run
- the user already said not to warn him/her about it
- an info-bar is already showing.
BUG=9049
TEST=Run a new install of chrome, proceed through the first run flow, don't
make Chrome your default browser. No info-bar warning about Chrome not
being the default browser should be shown.
Restart Chrome, such an info-bar should be shown. Click the x on the
info-bar to close it. Restart Chrome. The info-bar should be shown.
Select "Set as default". Restart Chrome, the info-bar should not be shown.
Start IE, make it your default browser (Tools menu, 'Internet option',
Programs tab). Restart Chrome, it should show the default browser info-bar.
Select "Don't ask me again". Restart Chrome, the info-bar should not be
shown.
Review URL: http://codereview.chromium.org/100287
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index ac79476..c5762fe 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1174,6 +1174,7 @@ void Browser::RegisterUserPrefs(PrefService* prefs) { prefs->RegisterBooleanPref(prefs::kDeletePasswords, false); prefs->RegisterBooleanPref(prefs::kDeleteFormData, true); prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0); + prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true); } // static |