| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Provides the logging service instance to be used by executables other than |
| // the reporter and cleaner. |
| |
| #include "chrome/chrome_cleaner/logging/logging_definitions.h" |
| #include "chrome/chrome_cleaner/logging/noop_logging_service.h" |
| |
| namespace chrome_cleaner { |
| |
| // Returns an instance of ReporterLoggingService if logs collection is enabled, |
| // or NoOpLoggingService otherwise. |
| LoggingServiceAPI* GetLoggingServiceForCurrentBuild() { |
| return NoOpLoggingService::GetInstance(); |
| } |
| |
| } // namespace chrome_cleaner |