diff --git a/chrome/service/BUILD.gn b/chrome/service/BUILD.gn index 386f4e2ce1..6f79acbd29 100644 --- a/chrome/service/BUILD.gn +++ b/chrome/service/BUILD.gn @@ -81,5 +81,7 @@ static_library("service") { "service_utility_process_host.cc", "service_utility_process_host.h", ] + } else { + sources += [ "cloud_print/print_system_dummy.cc" ] } } diff --git a/chrome/service/cloud_print/print_system_dummy.cc b/chrome/service/cloud_print/print_system_dummy.cc new file mode 100644 index 0000000000..69f1089349 --- /dev/null +++ b/chrome/service/cloud_print/print_system_dummy.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2010 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. + +// This is dummy implementation for all configurations where print system +// for cloud print is not available. + +#include "chrome/service/cloud_print/print_system.h" + +#include "base/logging.h" + +namespace cloud_print { + +scoped_refptr PrintSystem::CreateInstance( + const base::DictionaryValue* print_system_settings) { + NOTREACHED(); + return NULL; +} +} // namespace cloud_print +