chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.cc
// This constructor is only used by unit tests.
This constructor is only used by unit tests.
This constructor is only used by unit tests .
MediaTransferProtocolDeviceObserverLinux::
MediaTransferProtocolDeviceObserverLinux(
    GetStorageInfoFunc get_storage_info_func)
    : get_storage_info_func_(get_storage_info_func) {
  DCHECK(!MediaTransferProtocolManager::GetInstance());
  DCHECK(!g_mtp_device_observer);
  g_mtp_device_observer = this;
}
MediaTransferProtocolDeviceObserverLinux :: MediaTransferProtocolDeviceObserverLinux ( GetStorageInfoFunc get_storage_info_func ) : get_storage_info_func_ ( get_storage_info_func ) { DCHECK ( ! MediaTransferProtocolManager :: GetInstance ( ) ) ; DCHECK ( ! g_mtp_device_observer ) ; g_mtp_device_observer = this ; }
This constructor is only used by unit tests.
This constructor is only used by unit tests .
// In unit tests, we don't have a media transfer protocol manager.