| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 if (!GenerateId(path_bytes, &id)) | 427 if (!GenerateId(path_bytes, &id)) |
| 428 return ""; | 428 return ""; |
| 429 return id; | 429 return id; |
| 430 } | 430 } |
| 431 | 431 |
| 432 void Extension::GetBasicInfo(bool enabled, | 432 void Extension::GetBasicInfo(bool enabled, |
| 433 DictionaryValue* info) const { | 433 DictionaryValue* info) const { |
| 434 info->SetString(info_keys::kIdKey, id()); | 434 info->SetString(info_keys::kIdKey, id()); |
| 435 info->SetString(info_keys::kNameKey, name()); | 435 info->SetString(info_keys::kNameKey, name()); |
| 436 info->SetBoolean(info_keys::kEnabledKey, enabled); | 436 info->SetBoolean(info_keys::kEnabledKey, enabled); |
| 437 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); | |
| 438 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); | 437 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); |
| 439 info->SetString(info_keys::kVersionKey, VersionString()); | 438 info->SetString(info_keys::kVersionKey, VersionString()); |
| 440 info->SetString(info_keys::kDescriptionKey, description()); | 439 info->SetString(info_keys::kDescriptionKey, description()); |
| 441 info->SetString(info_keys::kOptionsUrlKey, | 440 info->SetString(info_keys::kOptionsUrlKey, |
| 442 options_url().possibly_invalid_spec()); | 441 options_url().possibly_invalid_spec()); |
| 443 info->SetString(info_keys::kHomepageUrlKey, | 442 info->SetString(info_keys::kHomepageUrlKey, |
| 444 GetHomepageURL().possibly_invalid_spec()); | 443 GetHomepageURL().possibly_invalid_spec()); |
| 445 } | 444 } |
| 446 | 445 |
| 447 Extension::Type Extension::GetType() const { | 446 Extension::Type Extension::GetType() const { |
| (...skipping 3167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3615 | 3614 |
| 3616 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3615 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 3617 const Extension* extension, | 3616 const Extension* extension, |
| 3618 const ExtensionPermissionSet* permissions, | 3617 const ExtensionPermissionSet* permissions, |
| 3619 Reason reason) | 3618 Reason reason) |
| 3620 : reason(reason), | 3619 : reason(reason), |
| 3621 extension(extension), | 3620 extension(extension), |
| 3622 permissions(permissions) {} | 3621 permissions(permissions) {} |
| 3623 | 3622 |
| 3624 } // namespace extensions | 3623 } // namespace extensions |
| OLD | NEW |