chromium/chrome/browser/win/icon_reader_service.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/win/icon_reader_service.h"

#include "chrome/grit/generated_resources.h"
#include "chrome/services/util_win/public/mojom/util_read_icon.mojom.h"
#include "content/public/browser/service_process_host.h"

mojo::Remote<chrome::mojom::UtilReadIcon> LaunchIconReaderInstance() {
  return content::ServiceProcessHost::Launch<chrome::mojom::UtilReadIcon>(
      content::ServiceProcessHost::Options()
          .WithDisplayName(IDS_UTILITY_PROCESS_UTILITY_WIN_NAME)
          .Pass());
}