summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 23:52:02 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 23:52:02 +0000
commitecceb404b0ad8412dc8f94b695502ca97682daa2 (patch)
tree7643154e0c8499f4010d20845e18902046352e78 /chrome
parenta4043be5be4b088e604a9519510fd4f970ecf4da (diff)
downloadchromium_src-ecceb404b0ad8412dc8f94b695502ca97682daa2.zip
chromium_src-ecceb404b0ad8412dc8f94b695502ca97682daa2.tar.gz
chromium_src-ecceb404b0ad8412dc8f94b695502ca97682daa2.tar.bz2
Add a temporary extension error message box on linux.
The NOTREACHED() crashed my debug build. Review URL: http://codereview.chromium.org/164088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/extensions/extension_install_ui.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 135aac7..7d879c5 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -89,8 +89,10 @@ void ExtensionInstallUI::OnInstallFailure(const std::string& error) {
CFSTR("Extension Install Error"), message_cf,
NULL, NULL, NULL, &response);
#else
- LOG(ERROR) << "Extension install failed: " << error.c_str();
- NOTREACHED();
+ GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", error.c_str());
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
#endif
}