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
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index c5912576..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 @@
// 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) {