Chromium Code Reviews| Index: base/version.cc |
| diff --git a/base/version.cc b/base/version.cc |
| index 02213fbf158ed56179dacf3288ab0f58bcf95c0b..39d89ea60890f8c451bb3b82397c4edabf115426 100644 |
| --- a/base/version.cc |
| +++ b/base/version.cc |
| @@ -93,6 +93,10 @@ Version::Version(const std::string& version_str) { |
| components_.swap(parsed); |
| } |
| +Version::Version(std::vector<uint32_t>&& components) { |
| + components_ = components; |
|
Fady Samuel
2016/07/19 19:56:46
Add to initializer list.
Alex Z.
2016/07/19 20:46:13
Done.
|
| +} |
| + |
| bool Version::IsValid() const { |
| return (!components_.empty()); |
| } |