OLD | NEW |
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/chrome_browser_main_gtk.h" | 5 #include "chrome/browser/chrome_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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 message = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); | 120 message = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); |
121 gtk_window_set_title(GTK_WINDOW(dialog), message.c_str()); | 121 gtk_window_set_title(GTK_WINDOW(dialog), message.c_str()); |
122 | 122 |
123 gtk_dialog_run(GTK_DIALOG(dialog)); | 123 gtk_dialog_run(GTK_DIALOG(dialog)); |
124 gtk_widget_destroy(dialog); | 124 gtk_widget_destroy(dialog); |
125 exit(EXIT_FAILURE); | 125 exit(EXIT_FAILURE); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 namespace content { | |
130 | |
131 void DidEndMainMessageLoop() { | |
132 } | |
133 | |
134 } | |
135 | |
136 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 129 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
137 #if defined(USE_LINUX_BREAKPAD) | 130 #if defined(USE_LINUX_BREAKPAD) |
138 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); | 131 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); |
139 #else | 132 #else |
140 metrics->RecordBreakpadRegistration(false); | 133 metrics->RecordBreakpadRegistration(false); |
141 #endif | 134 #endif |
142 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged()); | 135 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged()); |
143 } | 136 } |
144 | 137 |
145 void WarnAboutMinimumSystemRequirements() { | 138 void WarnAboutMinimumSystemRequirements() { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 } | 174 } |
182 | 175 |
183 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { | 176 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { |
184 } | 177 } |
185 | 178 |
186 void SetBrowserX11ErrorHandlers() { | 179 void SetBrowserX11ErrorHandlers() { |
187 // Set up error handlers to make sure profile gets written if X server | 180 // Set up error handlers to make sure profile gets written if X server |
188 // goes away. | 181 // goes away. |
189 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler); | 182 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler); |
190 } | 183 } |
OLD | NEW |