Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: chrome/browser/browser_main_gtk.cc

Issue 7610009: If no locale data files can be found, show a dialog and exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: error Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browser_main_gtk.h" 5 #include "chrome/browser/browser_main_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #else 172 #else
173 metrics->RecordBreakpadRegistration(false); 173 metrics->RecordBreakpadRegistration(false);
174 #endif 174 #endif
175 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged()); 175 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged());
176 } 176 }
177 177
178 void WarnAboutMinimumSystemRequirements() { 178 void WarnAboutMinimumSystemRequirements() {
179 // Nothing to warn about on GTK right now. 179 // Nothing to warn about on GTK right now.
180 } 180 }
181 181
182 void ShowMissingLocaleMessageBox(const char* message, const char* title) {
183 GtkWidget* dialog = gtk_message_dialog_new(
184 NULL,
185 static_cast<GtkDialogFlags>(0),
186 GTK_MESSAGE_ERROR,
187 GTK_BUTTONS_CLOSE,
188 "%s",
189 message);
190
191 gtk_window_set_title(GTK_WINDOW(dialog), title);
192
193 gtk_dialog_run(GTK_DIALOG(dialog));
194 gtk_widget_destroy(dialog);
195 }
196
182 void RecordBrowserStartupTime() { 197 void RecordBrowserStartupTime() {
183 // Not implemented on GTK for now. 198 // Not implemented on GTK for now.
184 } 199 }
185 200
186 // From browser_main_win.h, stubs until we figure out the right thing... 201 // From browser_main_win.h, stubs until we figure out the right thing...
187 202
188 int DoUninstallTasks(bool chrome_still_running) { 203 int DoUninstallTasks(bool chrome_still_running) {
189 return content::RESULT_CODE_NORMAL_EXIT; 204 return content::RESULT_CODE_NORMAL_EXIT;
190 } 205 }
191 206
(...skipping 14 matching lines...) Expand all
206 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler); 221 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler);
207 } 222 }
208 223
209 #if !defined(OS_CHROMEOS) 224 #if !defined(OS_CHROMEOS)
210 // static 225 // static
211 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts( 226 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts(
212 const MainFunctionParams& parameters) { 227 const MainFunctionParams& parameters) {
213 return new BrowserMainPartsGtk(parameters); 228 return new BrowserMainPartsGtk(parameters);
214 } 229 }
215 #endif 230 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698