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

Unified Diff: content/gpu/gpu_main.cc

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix installation_validator_unittest Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index bc2ee1287f69f0aba7c3eb749aa8e26745357912..ae01c1f000a94a45dc49f67959dc16044338ce52 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -164,7 +164,7 @@ int GpuMain(const MainFunctionParams& parameters) {
#endif
- logging::SetLogMessageHandler(GpuProcessLogMessageHandler);
+ logging::PushLogMessageHandler(GpuProcessLogMessageHandler);
if (command_line.HasSwitch(switches::kSupportsDualGpus)) {
std::string types = command_line.GetSwitchValueASCII(
@@ -383,7 +383,7 @@ int GpuMain(const MainFunctionParams& parameters) {
dead_on_arrival = true;
}
- logging::SetLogMessageHandler(NULL);
+ logging::PopLogMessageHandler();
std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory;
if (gpu::GetNativeGpuMemoryBufferType() != gfx::EMPTY_BUFFER)

Powered by Google App Engine
This is Rietveld 408576698