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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } else if (strstr(message, "Out of memory") && | 236 } else if (strstr(message, "Out of memory") && |
237 strstr(log_domain, "<unknown>")) { | 237 strstr(log_domain, "<unknown>")) { |
238 LOG(ERROR) << "DBus call timeout or out of memory: " | 238 LOG(ERROR) << "DBus call timeout or out of memory: " |
239 << "http://crosbug.com/15496"; | 239 << "http://crosbug.com/15496"; |
240 } else if (strstr(message, "Could not connect: Connection refused") && | 240 } else if (strstr(message, "Could not connect: Connection refused") && |
241 strstr(log_domain, "<unknown>")) { | 241 strstr(log_domain, "<unknown>")) { |
242 LOG(ERROR) << "DConf settings backend could not connect to session bus: " | 242 LOG(ERROR) << "DConf settings backend could not connect to session bus: " |
243 << "http://crbug.com/179797"; | 243 << "http://crbug.com/179797"; |
244 } else if (strstr(message, "Attempting to store changes into") || | 244 } else if (strstr(message, "Attempting to store changes into") || |
245 strstr(message, "Attempting to set the permissions of")) { | 245 strstr(message, "Attempting to set the permissions of")) { |
246 LOG(ERROR) << message << " (http://bugs.chromium.org/161366)"; | 246 LOG(ERROR) << message << " (http://crbug.com/161366)"; |
247 } else if (strstr(message, "drawable is not a native X11 window")) { | 247 } else if (strstr(message, "drawable is not a native X11 window")) { |
248 LOG(ERROR) << message << " (http://bugs.chromium.org/329991)"; | 248 LOG(ERROR) << message << " (http://crbug.com/329991)"; |
249 } else if (strstr(message, "Cannot do system-bus activation with no user")) { | 249 } else if (strstr(message, "Cannot do system-bus activation with no user")) { |
250 LOG(ERROR) << message << " (http://crbug.com/431005)"; | 250 LOG(ERROR) << message << " (http://crbug.com/431005)"; |
251 } else if (strstr(message, "deprecated")) { | 251 } else if (strstr(message, "deprecated")) { |
252 LOG(ERROR) << message; | 252 LOG(ERROR) << message; |
253 } else { | 253 } else { |
254 LOG(DFATAL) << log_domain << ": " << message; | 254 LOG(DFATAL) << log_domain << ": " << message; |
255 } | 255 } |
256 } | 256 } |
257 | 257 |
258 static void SetUpGLibLogHandler() { | 258 static void SetUpGLibLogHandler() { |
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 DCHECK(is_tracing_startup_for_duration_); | 1411 DCHECK(is_tracing_startup_for_duration_); |
1412 | 1412 |
1413 is_tracing_startup_for_duration_ = false; | 1413 is_tracing_startup_for_duration_ = false; |
1414 TracingController::GetInstance()->DisableRecording( | 1414 TracingController::GetInstance()->DisableRecording( |
1415 TracingController::CreateFileSink( | 1415 TracingController::CreateFileSink( |
1416 startup_trace_file_, | 1416 startup_trace_file_, |
1417 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1417 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1418 } | 1418 } |
1419 | 1419 |
1420 } // namespace content | 1420 } // namespace content |
OLD | NEW |