| 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 |
| 1342 bool Extension::can_be_incognito_enabled() const { | 1346 bool Extension::can_be_incognito_enabled() const { |
| 1343 return !is_platform_app(); | 1347 return !is_platform_app(); |
| 1344 } | 1348 } |
| 1345 | 1349 |
| 1346 bool Extension::is_theme() const { | 1350 bool Extension::is_theme() const { |
| 1347 return manifest()->is_theme(); | 1351 return manifest()->is_theme(); |
| 1348 } | 1352 } |
| 1349 | 1353 |
| 1350 GURL Extension::GetBackgroundURL() const { | 1354 GURL Extension::GetBackgroundURL() const { |
| 1351 if (background_scripts_.empty()) | 1355 if (background_scripts_.empty()) |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4220 | 4224 |
| 4221 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 4225 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 4222 const Extension* extension, | 4226 const Extension* extension, |
| 4223 const PermissionSet* permissions, | 4227 const PermissionSet* permissions, |
| 4224 Reason reason) | 4228 Reason reason) |
| 4225 : reason(reason), | 4229 : reason(reason), |
| 4226 extension(extension), | 4230 extension(extension), |
| 4227 permissions(permissions) {} | 4231 permissions(permissions) {} |
| 4228 | 4232 |
| 4229 } // namespace extensions | 4233 } // namespace extensions |
| OLD | NEW |