OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 LOG(ERROR) << "DConf settings backend could not connect to session bus: " | 233 LOG(ERROR) << "DConf settings backend could not connect to session bus: " |
234 << "http://crbug.com/179797"; | 234 << "http://crbug.com/179797"; |
235 } else if (strstr(message, "Attempting to store changes into") || | 235 } else if (strstr(message, "Attempting to store changes into") || |
236 strstr(message, "Attempting to set the permissions of")) { | 236 strstr(message, "Attempting to set the permissions of")) { |
237 LOG(ERROR) << message << " (http://bugs.chromium.org/161366)"; | 237 LOG(ERROR) << message << " (http://bugs.chromium.org/161366)"; |
238 } else if (strstr(message, "drawable is not a native X11 window")) { | 238 } else if (strstr(message, "drawable is not a native X11 window")) { |
239 LOG(ERROR) << message << " (http://bugs.chromium.org/329991)"; | 239 LOG(ERROR) << message << " (http://bugs.chromium.org/329991)"; |
240 } else if (strstr(message, "Cannot do system-bus activation with no user")) { | 240 } else if (strstr(message, "Cannot do system-bus activation with no user")) { |
241 LOG(ERROR) << message << " (http://crbug.com/431005)"; | 241 LOG(ERROR) << message << " (http://crbug.com/431005)"; |
242 } else { | 242 } else { |
243 LOG(DFATAL) << log_domain << ": " << message; | 243 LOG(ERROR) << log_domain << ": " << message; |
Elliot Glaysher
2015/09/01 22:43:58
You'll want to revert back to DFATAL and whitelist
knthzh
2015/09/02 05:48:29
Why are glib logs being filtered this way? Can I c
Elliot Glaysher
2015/09/03 19:28:01
Because of GTK's permissiveness.
GTK has the anno
knthzh
2015/09/04 00:15:18
Well then.
I'm still skeptical about this, though
Elliot Glaysher
2015/09/09 17:58:10
Yes. That is the story of this list.
| |
244 } | 244 } |
245 } | 245 } |
246 | 246 |
247 static void SetUpGLibLogHandler() { | 247 static void SetUpGLibLogHandler() { |
248 // Register GLib-handled assertions to go through our logging system. | 248 // Register GLib-handled assertions to go through our logging system. |
249 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib", "GLib-GObject" }; | 249 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib", "GLib-GObject" }; |
250 for (size_t i = 0; i < arraysize(kLogDomains); i++) { | 250 for (size_t i = 0; i < arraysize(kLogDomains); i++) { |
251 g_log_set_handler(kLogDomains[i], | 251 g_log_set_handler(kLogDomains[i], |
252 static_cast<GLogLevelFlags>(G_LOG_FLAG_RECURSION | | 252 static_cast<GLogLevelFlags>(G_LOG_FLAG_RECURSION | |
253 G_LOG_FLAG_FATAL | | 253 G_LOG_FLAG_FATAL | |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1361 DCHECK(is_tracing_startup_); | 1361 DCHECK(is_tracing_startup_); |
1362 | 1362 |
1363 is_tracing_startup_ = false; | 1363 is_tracing_startup_ = false; |
1364 TracingController::GetInstance()->DisableRecording( | 1364 TracingController::GetInstance()->DisableRecording( |
1365 TracingController::CreateFileSink( | 1365 TracingController::CreateFileSink( |
1366 startup_trace_file_, | 1366 startup_trace_file_, |
1367 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1367 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1368 } | 1368 } |
1369 | 1369 |
1370 } // namespace content | 1370 } // namespace content |
OLD | NEW |