| Index: extensions/common/extension_builder.cc
|
| diff --git a/extensions/common/extension_builder.cc b/extensions/common/extension_builder.cc
|
| index f993e9467ac89758efc2c1e50f0fe50c82d2d4a6..b573128f16deec660570b1a74146b7a7c54538f3 100644
|
| --- a/extensions/common/extension_builder.cc
|
| +++ b/extensions/common/extension_builder.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "extensions/common/extension_builder.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "extensions/common/extension.h"
|
|
|
| namespace extensions {
|
| @@ -14,6 +16,22 @@ ExtensionBuilder::ExtensionBuilder()
|
| }
|
| ExtensionBuilder::~ExtensionBuilder() {}
|
|
|
| +ExtensionBuilder::ExtensionBuilder(ExtensionBuilder&& other)
|
| + : path_(std::move(other.path_)),
|
| + location_(other.location_),
|
| + manifest_(std::move(other.manifest_)),
|
| + flags_(other.flags_),
|
| + id_(std::move(other.id_)) {}
|
| +
|
| +ExtensionBuilder& ExtensionBuilder::operator=(ExtensionBuilder&& other) {
|
| + path_ = std::move(other.path_);
|
| + location_ = other.location_;
|
| + manifest_ = std::move(other.manifest_);
|
| + flags_ = other.flags_;
|
| + id_ = std::move(other.id_);
|
| + return *this;
|
| +}
|
| +
|
| scoped_refptr<Extension> ExtensionBuilder::Build() {
|
| std::string error;
|
| scoped_refptr<Extension> extension = Extension::Create(
|
|
|