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 "content/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // spam the user with more than one of them. | 107 // spam the user with more than one of them. |
108 static bool alerted = false; | 108 static bool alerted = false; |
109 if (!alerted) { | 109 if (!alerted) { |
110 LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message; | 110 LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message; |
111 alerted = true; | 111 alerted = true; |
112 } | 112 } |
113 } else if (strstr(message, "Unable to retrieve the file info for")) { | 113 } else if (strstr(message, "Unable to retrieve the file info for")) { |
114 LOG(ERROR) << "GTK File code error: " << message; | 114 LOG(ERROR) << "GTK File code error: " << message; |
115 } else if (strstr(message, "Theme file for default has no") || | 115 } else if (strstr(message, "Theme file for default has no") || |
116 strstr(message, "Theme directory") || | 116 strstr(message, "Theme directory") || |
117 strstr(message, "theme pixmap")) { | 117 strstr(message, "theme pixmap") || |
| 118 strstr(message, "locate theme engine")) { |
118 LOG(ERROR) << "GTK theme error: " << message; | 119 LOG(ERROR) << "GTK theme error: " << message; |
119 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) { | 120 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) { |
120 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557"; | 121 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557"; |
121 } else if (strstr(message, "Out of memory") && | 122 } else if (strstr(message, "Out of memory") && |
122 strstr(log_domain, "<unknown>")) { | 123 strstr(log_domain, "<unknown>")) { |
123 LOG(ERROR) << "DBus call timeout or out of memory: " | 124 LOG(ERROR) << "DBus call timeout or out of memory: " |
124 << "http://crosbug.com/15496"; | 125 << "http://crosbug.com/15496"; |
125 } else if (strstr(message, "XDG_RUNTIME_DIR variable not set")) { | 126 } else if (strstr(message, "XDG_RUNTIME_DIR variable not set")) { |
126 LOG(ERROR) << message << " (http://bugs.chromium.org/97293)"; | 127 LOG(ERROR) << message << " (http://bugs.chromium.org/97293)"; |
127 } else { | 128 } else { |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task); | 559 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task); |
559 | 560 |
560 #if defined(OS_MACOSX) | 561 #if defined(OS_MACOSX) |
561 MessageLoopForUI::current()->Run(); | 562 MessageLoopForUI::current()->Run(); |
562 #else | 563 #else |
563 MessageLoopForUI::current()->RunWithDispatcher(NULL); | 564 MessageLoopForUI::current()->RunWithDispatcher(NULL); |
564 #endif | 565 #endif |
565 } | 566 } |
566 | 567 |
567 } // namespace content | 568 } // namespace content |
OLD | NEW |