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

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

Issue 2748443003: Add exception in GLibLogHandler for Gtk theme warning (Closed)
Patch Set: Created 3 years, 9 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
« 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) 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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")) { 278 } else if (strstr(message, "Could not obtain desktop path or name")) {
279 LOG(ERROR) << message; 279 LOG(ERROR) << message;
280 } else if (strstr(message, "Theme parsing error")) {
281 LOG(ERROR) << message;
280 } else { 282 } else {
281 LOG(DFATAL) << log_domain << ": " << message; 283 LOG(DFATAL) << log_domain << ": " << message;
282 } 284 }
283 } 285 }
284 286
285 static void SetUpGLibLogHandler() { 287 static void SetUpGLibLogHandler() {
286 // Register GLib-handled assertions to go through our logging system. 288 // Register GLib-handled assertions to go through our logging system.
287 const char* const kLogDomains[] = 289 const char* const kLogDomains[] =
288 { nullptr, "Gtk", "Gdk", "GLib", "GLib-GObject" }; 290 { nullptr, "Gtk", "Gdk", "GLib", "GLib-GObject" };
289 for (size_t i = 0; i < arraysize(kLogDomains); i++) { 291 for (size_t i = 0; i < arraysize(kLogDomains); i++) {
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), 1785 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
1784 MediaInternals::GetInstance()); 1786 MediaInternals::GetInstance());
1785 } 1787 }
1786 CHECK(audio_manager_); 1788 CHECK(audio_manager_);
1787 1789
1788 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); 1790 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
1789 CHECK(audio_system_); 1791 CHECK(audio_system_);
1790 } 1792 }
1791 1793
1792 } // namespace content 1794 } // 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