diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:16:34 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:16:34 +0000 |
commit | cd6993de91f8eb452d3d92916ed63c78612ffff0 (patch) | |
tree | 0b103be9a9c1d7b24a4439eefd92394034858dc6 /chrome/browser/browser_main.cc | |
parent | c17fe94be373a0934d0dca787b2601c4532f8a77 (diff) | |
download | chromium_src-cd6993de91f8eb452d3d92916ed63c78612ffff0.zip chromium_src-cd6993de91f8eb452d3d92916ed63c78612ffff0.tar.gz chromium_src-cd6993de91f8eb452d3d92916ed63c78612ffff0.tar.bz2 |
Error diagnostics for Blacklist IO
For now, as with other extension errors, these are not i18n'd.
The blacklist loading error is though because it is most like
an error to be shown to end users.
BUG=16932
TEST=none
Review URL: http://codereview.chromium.org/173357
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index d470dbf..c2450f7 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -39,6 +39,7 @@ #include "chrome/browser/net/metadata_url_request.h" #include "chrome/browser/net/sdch_dictionary_fetcher.h" #include "chrome/browser/plugin_service.h" +#include "chrome/browser/privacy_blacklist/blacklist.h" #include "chrome/browser/process_singleton.h" #include "chrome/browser/profile_manager.h" #include "chrome/browser/renderer_host/resource_dispatcher_host.h" @@ -96,6 +97,7 @@ #include "chrome/browser/net/url_fixer_upper.h" #include "chrome/browser/profile.h" #include "chrome/browser/rlz/rlz.h" +#include "chrome/browser/views/blacklist_error_dialog.h" #include "chrome/browser/views/user_data_dir_dialog.h" #include "chrome/common/env_vars.h" #include "chrome/installer/util/helper.h" @@ -558,6 +560,18 @@ int BrowserMain(const MainFunctionParams& parameters) { return ResultCodes::NORMAL_EXIT; } + if (profile->GetBlacklist() && !profile->GetBlacklist()->is_good()) { + // TODO(idanan): Enable this for other platforms once the dispatching + // support code has been ported. See ifdefs in message_loop.h. +#if defined(OS_WIN) + bool accepted = BlacklistErrorDialog::RunBlacklistErrorDialog(); + if (!accepted) + return ResultCodes::NORMAL_EXIT; +#else + return ResultCodes::NORMAL_EXIT; +#endif + } + PrefService* user_prefs = profile->GetPrefs(); DCHECK(user_prefs); |