chromium/chrome/browser/ash/file_suggest/file_suggestion_provider.cc

// Copyright 2022 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/ash/file_suggest/file_suggestion_provider.h"

namespace ash {

FileSuggestionProvider::FileSuggestionProvider(
    base::RepeatingCallback<void(FileSuggestionType)> notify_update_callback)
    : notify_update_callback_(notify_update_callback) {}

FileSuggestionProvider::~FileSuggestionProvider() = default;

void FileSuggestionProvider::NotifySuggestionUpdate(FileSuggestionType type) {
  notify_update_callback_.Run(type);
}

}  // namespace ash