hashed_extension_id.cc 829 B

1234567891011121314151617181920212223
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "extensions/common/hashed_extension_id.h"
  5. #include "components/crx_file/id_util.h"
  6. namespace extensions {
  7. HashedExtensionId::HashedExtensionId() {}
  8. HashedExtensionId::HashedExtensionId(const ExtensionId& original_id)
  9. : value_(crx_file::id_util::HashedIdInHex(original_id)) {}
  10. HashedExtensionId::HashedExtensionId(HashedExtensionId&& other) = default;
  11. HashedExtensionId::HashedExtensionId(const HashedExtensionId& other) = default;
  12. HashedExtensionId& HashedExtensionId::operator=(HashedExtensionId&& other) =
  13. default;
  14. HashedExtensionId& HashedExtensionId::operator=(
  15. const HashedExtensionId& other) = default;
  16. } // namespace extensions