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/extension.h" | 5 #include "chrome/common/extensions/extension.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 } | 1332 } |
1333 | 1333 |
1334 bool Extension::is_hosted_app() const { | 1334 bool Extension::is_hosted_app() const { |
1335 return manifest()->is_hosted_app(); | 1335 return manifest()->is_hosted_app(); |
1336 } | 1336 } |
1337 | 1337 |
1338 bool Extension::is_legacy_packaged_app() const { | 1338 bool Extension::is_legacy_packaged_app() const { |
1339 return manifest()->is_legacy_packaged_app(); | 1339 return manifest()->is_legacy_packaged_app(); |
1340 } | 1340 } |
1341 | 1341 |
1342 bool Extension::is_extension() const { | |
1343 return manifest()->is_extension(); | |
1344 } | |
1345 | |
1346 bool Extension::can_be_incognito_enabled() const { | 1342 bool Extension::can_be_incognito_enabled() const { |
1347 return !is_platform_app(); | 1343 return !is_platform_app(); |
1348 } | 1344 } |
1349 | 1345 |
1350 bool Extension::is_theme() const { | 1346 bool Extension::is_theme() const { |
1351 return manifest()->is_theme(); | 1347 return manifest()->is_theme(); |
1352 } | 1348 } |
1353 | 1349 |
1354 GURL Extension::GetBackgroundURL() const { | 1350 GURL Extension::GetBackgroundURL() const { |
1355 if (background_scripts_.empty()) | 1351 if (background_scripts_.empty()) |
(...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4224 | 4220 |
4225 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 4221 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
4226 const Extension* extension, | 4222 const Extension* extension, |
4227 const PermissionSet* permissions, | 4223 const PermissionSet* permissions, |
4228 Reason reason) | 4224 Reason reason) |
4229 : reason(reason), | 4225 : reason(reason), |
4230 extension(extension), | 4226 extension(extension), |
4231 permissions(permissions) {} | 4227 permissions(permissions) {} |
4232 | 4228 |
4233 } // namespace extensions | 4229 } // namespace extensions |
OLD | NEW |