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/api_feature.h" | 5 #include "extensions/common/features/api_feature.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 APIFeature::APIFeature() | 9 APIFeature::APIFeature() |
10 : internal_(false), blocked_in_service_worker_(false) {} | 10 : internal_(false), blocked_in_service_worker_(false) {} |
11 | 11 |
12 APIFeature::~APIFeature() { | 12 APIFeature::~APIFeature() { |
13 } | 13 } |
14 | 14 |
15 bool APIFeature::IsInternal() const { | 15 bool APIFeature::IsInternal() const { |
(...skipping 12 matching lines...) Expand all Loading... |
28 value->GetBoolean("internal", &internal_); | 28 value->GetBoolean("internal", &internal_); |
29 value->GetBoolean("blocked_in_service_worker", &blocked_in_service_worker_); | 29 value->GetBoolean("blocked_in_service_worker", &blocked_in_service_worker_); |
30 | 30 |
31 if (GetContexts()->empty()) | 31 if (GetContexts()->empty()) |
32 return name() + ": API features must specify at least one context."; | 32 return name() + ": API features must specify at least one context."; |
33 | 33 |
34 return std::string(); | 34 return std::string(); |
35 } | 35 } |
36 | 36 |
37 } // namespace extensions | 37 } // namespace extensions |
OLD | NEW |