summaryrefslogtreecommitdiff
path: root/chromium/extensions/common/hashed_extension_id.cc
blob: 9d7cc31ebd9d8d6097ab090e868aaef29dddb669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2017 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 "extensions/common/hashed_extension_id.h"

#include "components/crx_file/id_util.h"

namespace extensions {

HashedExtensionId::HashedExtensionId() {}

HashedExtensionId::HashedExtensionId(const ExtensionId& original_id)
    : value_(crx_file::id_util::HashedIdInHex(original_id)) {}

HashedExtensionId::HashedExtensionId(HashedExtensionId&& other) = default;
HashedExtensionId::HashedExtensionId(const HashedExtensionId& other) = default;
HashedExtensionId& HashedExtensionId::operator=(HashedExtensionId&& other) =
    default;
HashedExtensionId& HashedExtensionId::operator=(
    const HashedExtensionId& other) = default;

}  // namespace extensions