| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/features/simple_feature.h" | 5 #include "chrome/common/extensions/features/simple_feature.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 : whitelist_(other.whitelist_), | 174 : whitelist_(other.whitelist_), |
| 175 extension_types_(other.extension_types_), | 175 extension_types_(other.extension_types_), |
| 176 contexts_(other.contexts_), | 176 contexts_(other.contexts_), |
| 177 location_(other.location_), | 177 location_(other.location_), |
| 178 platform_(other.platform_), | 178 platform_(other.platform_), |
| 179 min_manifest_version_(other.min_manifest_version_), | 179 min_manifest_version_(other.min_manifest_version_), |
| 180 max_manifest_version_(other.max_manifest_version_), | 180 max_manifest_version_(other.max_manifest_version_), |
| 181 channel_(other.channel_) { | 181 channel_(other.channel_) { |
| 182 } | 182 } |
| 183 | 183 |
| 184 SimpleFeature::SimpleFeature(Feature* feature) { |
| 185 SimpleFeature(); |
| 186 } |
| 187 |
| 184 SimpleFeature::~SimpleFeature() { | 188 SimpleFeature::~SimpleFeature() { |
| 185 } | 189 } |
| 186 | 190 |
| 187 bool SimpleFeature::Equals(const SimpleFeature& other) const { | 191 bool SimpleFeature::Equals(const SimpleFeature& other) const { |
| 188 return whitelist_ == other.whitelist_ && | 192 return whitelist_ == other.whitelist_ && |
| 189 extension_types_ == other.extension_types_ && | 193 extension_types_ == other.extension_types_ && |
| 190 contexts_ == other.contexts_ && | 194 contexts_ == other.contexts_ && |
| 191 location_ == other.location_ && | 195 location_ == other.location_ && |
| 192 platform_ == other.platform_ && | 196 platform_ == other.platform_ && |
| 193 min_manifest_version_ == other.min_manifest_version_ && | 197 min_manifest_version_ == other.min_manifest_version_ && |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 Feature::Availability SimpleFeature::CreateAvailability( | 366 Feature::Availability SimpleFeature::CreateAvailability( |
| 363 AvailabilityResult result, Extension::Type type) const { | 367 AvailabilityResult result, Extension::Type type) const { |
| 364 return Availability(result, GetAvailabilityMessage(result, type)); | 368 return Availability(result, GetAvailabilityMessage(result, type)); |
| 365 } | 369 } |
| 366 | 370 |
| 367 std::set<Feature::Context>* SimpleFeature::GetContexts() { | 371 std::set<Feature::Context>* SimpleFeature::GetContexts() { |
| 368 return &contexts_; | 372 return &contexts_; |
| 369 } | 373 } |
| 370 | 374 |
| 371 } // namespace extensions | 375 } // namespace extensions |
| OLD | NEW |