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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 strstr(log_domain, "Gtk")) { | 175 strstr(log_domain, "Gtk")) { |
176 LOG(ERROR) << "GTK icon error: " << message; | 176 LOG(ERROR) << "GTK icon error: " << message; |
177 } else if (strstr(message, "Theme file for default has no") || | 177 } else if (strstr(message, "Theme file for default has no") || |
178 strstr(message, "Theme directory") || | 178 strstr(message, "Theme directory") || |
179 strstr(message, "theme pixmap") || | 179 strstr(message, "theme pixmap") || |
180 strstr(message, "locate theme engine")) { | 180 strstr(message, "locate theme engine")) { |
181 LOG(ERROR) << "GTK theme error: " << message; | 181 LOG(ERROR) << "GTK theme error: " << message; |
182 } else if (strstr(message, "Unable to create Ubuntu Menu Proxy") && | 182 } else if (strstr(message, "Unable to create Ubuntu Menu Proxy") && |
183 strstr(log_domain, "<unknown>")) { | 183 strstr(log_domain, "<unknown>")) { |
184 LOG(ERROR) << "GTK menu proxy create failed"; | 184 LOG(ERROR) << "GTK menu proxy create failed"; |
185 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) { | |
186 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557"; | |
187 } else if (strstr(message, "Out of memory") && | 185 } else if (strstr(message, "Out of memory") && |
188 strstr(log_domain, "<unknown>")) { | 186 strstr(log_domain, "<unknown>")) { |
189 LOG(ERROR) << "DBus call timeout or out of memory: " | 187 LOG(ERROR) << "DBus call timeout or out of memory: " |
190 << "http://crosbug.com/15496"; | 188 << "http://crosbug.com/15496"; |
191 } else if (strstr(message, "Could not connect: Connection refused") && | 189 } else if (strstr(message, "Could not connect: Connection refused") && |
192 strstr(log_domain, "<unknown>")) { | 190 strstr(log_domain, "<unknown>")) { |
193 LOG(ERROR) << "DConf settings backend could not connect to session bus: " | 191 LOG(ERROR) << "DConf settings backend could not connect to session bus: " |
194 << "http://crbug.com/179797"; | 192 << "http://crbug.com/179797"; |
195 } else if (strstr(message, "Attempting to store changes into") || | 193 } else if (strstr(message, "Attempting to store changes into") || |
196 strstr(message, "Attempting to set the permissions of")) { | 194 strstr(message, "Attempting to set the permissions of")) { |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 base::TimeDelta::FromSeconds(delay_secs)); | 1086 base::TimeDelta::FromSeconds(delay_secs)); |
1089 } | 1087 } |
1090 | 1088 |
1091 void BrowserMainLoop::EndStartupTracing(const base::FilePath& trace_file) { | 1089 void BrowserMainLoop::EndStartupTracing(const base::FilePath& trace_file) { |
1092 is_tracing_startup_ = false; | 1090 is_tracing_startup_ = false; |
1093 TracingController::GetInstance()->DisableRecording( | 1091 TracingController::GetInstance()->DisableRecording( |
1094 trace_file, base::Bind(&OnStoppedStartupTracing)); | 1092 trace_file, base::Bind(&OnStoppedStartupTracing)); |
1095 } | 1093 } |
1096 | 1094 |
1097 } // namespace content | 1095 } // namespace content |
OLD | NEW |