Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 8907052: GTK: Expand the list of acceptable errors from GTK to handle missing theme engines. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698