diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 20:51:20 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 20:51:20 +0000 |
commit | 79db623ab30e307049cd9ad0cc22a8ff1a399cbb (patch) | |
tree | e1a940ce3c379ee5cd472dee073a48edf9f4c7a1 | |
parent | 6d53eb2ab02939d98002bbd9513cbf1d4c0e258c (diff) | |
download | chromium_src-79db623ab30e307049cd9ad0cc22a8ff1a399cbb.zip chromium_src-79db623ab30e307049cd9ad0cc22a8ff1a399cbb.tar.gz chromium_src-79db623ab30e307049cd9ad0cc22a8ff1a399cbb.tar.bz2 |
Put up a dialog for extension load and install errors. (this is temporary until we get a more permanent location for errors)
Review URL: http://codereview.chromium.org/20366
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9790 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/extensions_service.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc index c591257..05cb722 100644 --- a/chrome/browser/extensions/extensions_service.cc +++ b/chrome/browser/extensions/extensions_service.cc @@ -18,6 +18,9 @@ #include "chrome/common/json_value_serializer.h" #include "chrome/common/notification_service.h" #include "chrome/common/unzip.h" +#if defined(OS_WIN) +#include "chrome/common/win_util.h" +#endif // ExtensionsService @@ -128,11 +131,19 @@ void ExtensionsService::OnExtensionLoadError(const std::string& error) { // TODO(aa): Print the error message out somewhere better. I think we are // going to need some sort of 'extension inspector'. LOG(WARNING) << error; +#if defined(OS_WIN) + win_util::MessageBox(NULL, UTF8ToWide(error), + L"Extension load error", MB_OK | MB_SETFOREGROUND); +#endif } void ExtensionsService::OnExtensionInstallError(const std::string& error) { // TODO(erikkay): Print the error message out somewhere better. LOG(WARNING) << error; +#if defined(OS_WIN) + win_util::MessageBox(NULL, UTF8ToWide(error), + L"Extension load error", MB_OK | MB_SETFOREGROUND); +#endif } void ExtensionsService::OnExtensionInstalled(FilePath path) { |