| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 << "http://crbug.com/179797"; | 268 << "http://crbug.com/179797"; |
| 269 } else if (strstr(message, "Attempting to store changes into") || | 269 } else if (strstr(message, "Attempting to store changes into") || |
| 270 strstr(message, "Attempting to set the permissions of")) { | 270 strstr(message, "Attempting to set the permissions of")) { |
| 271 LOG(ERROR) << message << " (http://crbug.com/161366)"; | 271 LOG(ERROR) << message << " (http://crbug.com/161366)"; |
| 272 } else if (strstr(message, "drawable is not a native X11 window")) { | 272 } else if (strstr(message, "drawable is not a native X11 window")) { |
| 273 LOG(ERROR) << message << " (http://crbug.com/329991)"; | 273 LOG(ERROR) << message << " (http://crbug.com/329991)"; |
| 274 } else if (strstr(message, "Cannot do system-bus activation with no user")) { | 274 } else if (strstr(message, "Cannot do system-bus activation with no user")) { |
| 275 LOG(ERROR) << message << " (http://crbug.com/431005)"; | 275 LOG(ERROR) << message << " (http://crbug.com/431005)"; |
| 276 } else if (strstr(message, "deprecated")) { | 276 } else if (strstr(message, "deprecated")) { |
| 277 LOG(ERROR) << message; | 277 LOG(ERROR) << message; |
| 278 } else if (strstr(message, "Could not obtain desktop path or name")) { |
| 279 LOG(ERROR) << message; |
| 278 } else { | 280 } else { |
| 279 LOG(DFATAL) << log_domain << ": " << message; | 281 LOG(DFATAL) << log_domain << ": " << message; |
| 280 } | 282 } |
| 281 } | 283 } |
| 282 | 284 |
| 283 static void SetUpGLibLogHandler() { | 285 static void SetUpGLibLogHandler() { |
| 284 // Register GLib-handled assertions to go through our logging system. | 286 // Register GLib-handled assertions to go through our logging system. |
| 285 const char* const kLogDomains[] = | 287 const char* const kLogDomains[] = |
| 286 { nullptr, "Gtk", "Gdk", "GLib", "GLib-GObject" }; | 288 { nullptr, "Gtk", "Gdk", "GLib", "GLib-GObject" }; |
| 287 for (size_t i = 0; i < arraysize(kLogDomains); i++) { | 289 for (size_t i = 0; i < arraysize(kLogDomains); i++) { |
| (...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), | 1783 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), |
| 1782 MediaInternals::GetInstance()); | 1784 MediaInternals::GetInstance()); |
| 1783 } | 1785 } |
| 1784 CHECK(audio_manager_); | 1786 CHECK(audio_manager_); |
| 1785 | 1787 |
| 1786 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); | 1788 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); |
| 1787 CHECK(audio_system_); | 1789 CHECK(audio_system_); |
| 1788 } | 1790 } |
| 1789 | 1791 |
| 1790 } // namespace content | 1792 } // namespace content |
| OLD | NEW |