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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 7074010: Merge 86806 - Dbus call timeout handled (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 years, 7 months 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 | Annotate | Revision Log
« 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 "chrome/browser/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 "allocate widget with width") && 895 "allocate widget with width") &&
896 !GTK_CHECK_VERSION(2, 16, 1)) { 896 !GTK_CHECK_VERSION(2, 16, 1)) {
897 // This warning only occurs in obsolete versions of GTK and is harmless. 897 // This warning only occurs in obsolete versions of GTK and is harmless.
898 // http://crbug.com/11133 898 // http://crbug.com/11133
899 } else if (strstr(message, "Theme file for default has no") || 899 } else if (strstr(message, "Theme file for default has no") ||
900 strstr(message, "Theme directory") || 900 strstr(message, "Theme directory") ||
901 strstr(message, "theme pixmap")) { 901 strstr(message, "theme pixmap")) {
902 LOG(ERROR) << "GTK theme error: " << message; 902 LOG(ERROR) << "GTK theme error: " << message;
903 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) { 903 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) {
904 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557"; 904 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557";
905 } else if (strstr(message, "Out of memory") &&
906 strstr(log_domain, "<unknown>")) {
907 LOG(ERROR) << "DBus call timeout or out of memory: "
908 << "http://crosbug.com/15496";
905 } else { 909 } else {
906 LOG(DFATAL) << log_domain << ": " << message; 910 LOG(DFATAL) << log_domain << ": " << message;
907 } 911 }
908 } 912 }
909 913
910 static void SetUpGLibLogHandler() { 914 static void SetUpGLibLogHandler() {
911 // Register GLib-handled assertions to go through our logging system. 915 // Register GLib-handled assertions to go through our logging system.
912 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib", "GLib-GObject" }; 916 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib", "GLib-GObject" };
913 for (size_t i = 0; i < arraysize(kLogDomains); i++) { 917 for (size_t i = 0; i < arraysize(kLogDomains); i++) {
914 g_log_set_handler(kLogDomains[i], 918 g_log_set_handler(kLogDomains[i],
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 #if defined(OS_CHROMEOS) 1904 #if defined(OS_CHROMEOS)
1901 // To be precise, logout (browser shutdown) is not yet done, but the 1905 // To be precise, logout (browser shutdown) is not yet done, but the
1902 // remaining work is negligible, hence we say LogoutDone here. 1906 // remaining work is negligible, hence we say LogoutDone here.
1903 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", 1907 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone",
1904 false); 1908 false);
1905 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); 1909 chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
1906 #endif 1910 #endif
1907 TRACE_EVENT_END("BrowserMain", 0, 0); 1911 TRACE_EVENT_END("BrowserMain", 0, 0);
1908 return result_code; 1912 return result_code;
1909 } 1913 }
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