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 "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 info->SetString(info_keys::kNameKey, name()); | 614 info->SetString(info_keys::kNameKey, name()); |
615 info->SetBoolean(info_keys::kEnabledKey, enabled); | 615 info->SetBoolean(info_keys::kEnabledKey, enabled); |
616 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); | 616 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); |
617 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); | 617 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); |
618 info->SetString(info_keys::kVersionKey, VersionString()); | 618 info->SetString(info_keys::kVersionKey, VersionString()); |
619 info->SetString(info_keys::kDescriptionKey, description()); | 619 info->SetString(info_keys::kDescriptionKey, description()); |
620 info->SetString(info_keys::kOptionsUrlKey, | 620 info->SetString(info_keys::kOptionsUrlKey, |
621 options_url().possibly_invalid_spec()); | 621 options_url().possibly_invalid_spec()); |
622 info->SetString(info_keys::kHomepageUrlKey, | 622 info->SetString(info_keys::kHomepageUrlKey, |
623 GetHomepageURL().possibly_invalid_spec()); | 623 GetHomepageURL().possibly_invalid_spec()); |
624 info->SetBoolean(info_keys::kHomepageProvidedKey, homepage_url_.is_valid()); | |
625 } | 624 } |
626 | 625 |
627 Extension::Type Extension::GetType() const { | 626 Extension::Type Extension::GetType() const { |
628 if (converted_from_user_script()) | 627 if (converted_from_user_script()) |
629 return TYPE_USER_SCRIPT; | 628 return TYPE_USER_SCRIPT; |
630 else | 629 else |
631 return manifest_->GetType(); | 630 return manifest_->GetType(); |
632 } | 631 } |
633 | 632 |
634 // static | 633 // static |
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3721 already_disabled(false), | 3720 already_disabled(false), |
3722 extension(extension) {} | 3721 extension(extension) {} |
3723 | 3722 |
3724 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3723 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
3725 const Extension* extension, | 3724 const Extension* extension, |
3726 const ExtensionPermissionSet* permissions, | 3725 const ExtensionPermissionSet* permissions, |
3727 Reason reason) | 3726 Reason reason) |
3728 : reason(reason), | 3727 : reason(reason), |
3729 extension(extension), | 3728 extension(extension), |
3730 permissions(permissions) {} | 3729 permissions(permissions) {} |
OLD | NEW |