summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main_gtk.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 21:40:59 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 21:40:59 +0000
commitcbce4724553752fa8572f0ac43d2b48e74c6ac79 (patch)
tree50f1586f3ed213bd0d6aade5987ea87db4cba8df /chrome/browser/browser_main_gtk.cc
parent939c013a8a01da8bd361d63d0fe122d41ed97744 (diff)
downloadchromium_src-cbce4724553752fa8572f0ac43d2b48e74c6ac79.zip
chromium_src-cbce4724553752fa8572f0ac43d2b48e74c6ac79.tar.gz
chromium_src-cbce4724553752fa8572f0ac43d2b48e74c6ac79.tar.bz2
If no locale data files can be found, show a dialog and exit
with RESULT_CODE_MISSING_DATA. We used to just CHECK() crash. BUG=69194 Review URL: http://codereview.chromium.org/7610009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main_gtk.cc')
-rw-r--r--chrome/browser/browser_main_gtk.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/browser_main_gtk.cc b/chrome/browser/browser_main_gtk.cc
index 98480e0..7e718c2 100644
--- a/chrome/browser/browser_main_gtk.cc
+++ b/chrome/browser/browser_main_gtk.cc
@@ -179,6 +179,22 @@ void WarnAboutMinimumSystemRequirements() {
// Nothing to warn about on GTK right now.
}
+void ShowMissingLocaleMessageBox() {
+ GtkWidget* dialog = gtk_message_dialog_new(
+ NULL,
+ static_cast<GtkDialogFlags>(0),
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ "%s",
+ chrome_browser::kMissingLocaleDataMessage);
+
+ gtk_window_set_title(GTK_WINDOW(dialog),
+ chrome_browser::kMissingLocaleDataTitle);
+
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+}
+
void RecordBrowserStartupTime() {
// Not implemented on GTK for now.
}