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 |
129 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 136 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
130 #if defined(USE_LINUX_BREAKPAD) | 137 #if defined(USE_LINUX_BREAKPAD) |
131 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); | 138 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); |
132 #else | 139 #else |
133 metrics->RecordBreakpadRegistration(false); | 140 metrics->RecordBreakpadRegistration(false); |
134 #endif | 141 #endif |
135 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged()); | 142 metrics->RecordBreakpadHasDebugger(base::debug::BeingDebugged()); |
136 } | 143 } |
137 | 144 |
138 void WarnAboutMinimumSystemRequirements() { | 145 void WarnAboutMinimumSystemRequirements() { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 181 } |
175 | 182 |
176 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { | 183 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { |
177 } | 184 } |
178 | 185 |
179 void SetBrowserX11ErrorHandlers() { | 186 void SetBrowserX11ErrorHandlers() { |
180 // Set up error handlers to make sure profile gets written if X server | 187 // Set up error handlers to make sure profile gets written if X server |
181 // goes away. | 188 // goes away. |
182 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler); | 189 ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler); |
183 } | 190 } |
OLD | NEW |