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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 info->SetString(info_keys::kNameKey, name()); | 596 info->SetString(info_keys::kNameKey, name()); |
597 info->SetBoolean(info_keys::kEnabledKey, enabled); | 597 info->SetBoolean(info_keys::kEnabledKey, enabled); |
598 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); | 598 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); |
599 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); | 599 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); |
600 info->SetString(info_keys::kVersionKey, VersionString()); | 600 info->SetString(info_keys::kVersionKey, VersionString()); |
601 info->SetString(info_keys::kDescriptionKey, description()); | 601 info->SetString(info_keys::kDescriptionKey, description()); |
602 info->SetString(info_keys::kOptionsUrlKey, | 602 info->SetString(info_keys::kOptionsUrlKey, |
603 options_url().possibly_invalid_spec()); | 603 options_url().possibly_invalid_spec()); |
604 info->SetString(info_keys::kHomepageUrlKey, | 604 info->SetString(info_keys::kHomepageUrlKey, |
605 GetHomepageURL().possibly_invalid_spec()); | 605 GetHomepageURL().possibly_invalid_spec()); |
| 606 info->SetBoolean(info_keys::kHomepageProvidedKey, homepage_url_.is_valid()); |
606 } | 607 } |
607 | 608 |
608 Extension::Type Extension::GetType() const { | 609 Extension::Type Extension::GetType() const { |
609 if (converted_from_user_script()) | 610 if (converted_from_user_script()) |
610 return TYPE_USER_SCRIPT; | 611 return TYPE_USER_SCRIPT; |
611 else | 612 else |
612 return manifest_->GetType(); | 613 return manifest_->GetType(); |
613 } | 614 } |
614 | 615 |
615 // static | 616 // static |
(...skipping 3088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3704 already_disabled(false), | 3705 already_disabled(false), |
3705 extension(extension) {} | 3706 extension(extension) {} |
3706 | 3707 |
3707 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3708 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
3708 const Extension* extension, | 3709 const Extension* extension, |
3709 const ExtensionPermissionSet* permissions, | 3710 const ExtensionPermissionSet* permissions, |
3710 Reason reason) | 3711 Reason reason) |
3711 : reason(reason), | 3712 : reason(reason), |
3712 extension(extension), | 3713 extension(extension), |
3713 permissions(permissions) {} | 3714 permissions(permissions) {} |
OLD | NEW |