| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/extension_builder.h" | 5 #include "extensions/common/extension_builder.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/extension.h" | 7 #include "extensions/common/extension.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 ExtensionBuilder::ExtensionBuilder() | 11 ExtensionBuilder::ExtensionBuilder() |
| 12 : location_(Manifest::UNPACKED), | 12 : location_(Manifest::UNPACKED), |
| 13 flags_(Extension::NO_FLAGS) { | 13 flags_(Extension::NO_FLAGS) { |
| 14 } | 14 } |
| 15 ExtensionBuilder::~ExtensionBuilder() {} | 15 ExtensionBuilder::~ExtensionBuilder() {} |
| 16 | 16 |
| 17 scoped_refptr<Extension> ExtensionBuilder::Build() { | 17 scoped_refptr<Extension> ExtensionBuilder::Build() { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 flags_ |= init_from_value_flags; | 52 flags_ |= init_from_value_flags; |
| 53 return *this; | 53 return *this; |
| 54 } | 54 } |
| 55 | 55 |
| 56 ExtensionBuilder& ExtensionBuilder::SetID(const std::string& id) { | 56 ExtensionBuilder& ExtensionBuilder::SetID(const std::string& id) { |
| 57 id_ = id; | 57 id_ = id; |
| 58 return *this; | 58 return *this; |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace extensions | 61 } // namespace extensions |
| OLD | NEW |