blob: 58c03c00e6f7f134af1e2aadd203a9384d14e3be [file] [log] [blame]
// Copyright (c) 2019 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.
#include "chrome/browser/apps/app_service/icon_key_util.h"
namespace apps_util {
IncrementingIconKeyFactory::IncrementingIconKeyFactory() : last_timeline_(0) {}
apps::mojom::IconKeyPtr IncrementingIconKeyFactory::MakeIconKey(
uint32_t icon_effects) {
return apps::mojom::IconKey::New(
++last_timeline_, apps::mojom::IconKey::kInvalidResourceId, icon_effects);
}
} // namespace apps_util