| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 if (!GenerateId(path_bytes, &id)) | 405 if (!GenerateId(path_bytes, &id)) |
| 406 return ""; | 406 return ""; |
| 407 return id; | 407 return id; |
| 408 } | 408 } |
| 409 | 409 |
| 410 void Extension::GetBasicInfo(bool enabled, | 410 void Extension::GetBasicInfo(bool enabled, |
| 411 DictionaryValue* info) const { | 411 DictionaryValue* info) const { |
| 412 info->SetString(info_keys::kIdKey, id()); | 412 info->SetString(info_keys::kIdKey, id()); |
| 413 info->SetString(info_keys::kNameKey, name()); | 413 info->SetString(info_keys::kNameKey, name()); |
| 414 info->SetBoolean(info_keys::kEnabledKey, enabled); | 414 info->SetBoolean(info_keys::kEnabledKey, enabled); |
| 415 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); | |
| 416 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); | 415 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); |
| 417 info->SetString(info_keys::kVersionKey, VersionString()); | 416 info->SetString(info_keys::kVersionKey, VersionString()); |
| 418 info->SetString(info_keys::kDescriptionKey, description()); | 417 info->SetString(info_keys::kDescriptionKey, description()); |
| 419 info->SetString(info_keys::kOptionsUrlKey, | 418 info->SetString(info_keys::kOptionsUrlKey, |
| 420 options_url().possibly_invalid_spec()); | 419 options_url().possibly_invalid_spec()); |
| 421 info->SetString(info_keys::kHomepageUrlKey, | 420 info->SetString(info_keys::kHomepageUrlKey, |
| 422 GetHomepageURL().possibly_invalid_spec()); | 421 GetHomepageURL().possibly_invalid_spec()); |
| 423 } | 422 } |
| 424 | 423 |
| 425 Extension::Type Extension::GetType() const { | 424 Extension::Type Extension::GetType() const { |
| (...skipping 3129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3555 already_disabled(false), | 3554 already_disabled(false), |
| 3556 extension(extension) {} | 3555 extension(extension) {} |
| 3557 | 3556 |
| 3558 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3557 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 3559 const Extension* extension, | 3558 const Extension* extension, |
| 3560 const ExtensionPermissionSet* permissions, | 3559 const ExtensionPermissionSet* permissions, |
| 3561 Reason reason) | 3560 Reason reason) |
| 3562 : reason(reason), | 3561 : reason(reason), |
| 3563 extension(extension), | 3562 extension(extension), |
| 3564 permissions(permissions) {} | 3563 permissions(permissions) {} |
| OLD | NEW |