| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 if (!GenerateId(path_bytes, &id)) | 409 if (!GenerateId(path_bytes, &id)) |
| 410 return ""; | 410 return ""; |
| 411 return id; | 411 return id; |
| 412 } | 412 } |
| 413 | 413 |
| 414 void Extension::GetBasicInfo(bool enabled, | 414 void Extension::GetBasicInfo(bool enabled, |
| 415 DictionaryValue* info) const { | 415 DictionaryValue* info) const { |
| 416 info->SetString(info_keys::kIdKey, id()); | 416 info->SetString(info_keys::kIdKey, id()); |
| 417 info->SetString(info_keys::kNameKey, name()); | 417 info->SetString(info_keys::kNameKey, name()); |
| 418 info->SetBoolean(info_keys::kEnabledKey, enabled); | 418 info->SetBoolean(info_keys::kEnabledKey, enabled); |
| 419 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); | |
| 420 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); | 419 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); |
| 421 info->SetString(info_keys::kVersionKey, VersionString()); | 420 info->SetString(info_keys::kVersionKey, VersionString()); |
| 422 info->SetString(info_keys::kDescriptionKey, description()); | 421 info->SetString(info_keys::kDescriptionKey, description()); |
| 423 info->SetString(info_keys::kOptionsUrlKey, | 422 info->SetString(info_keys::kOptionsUrlKey, |
| 424 options_url().possibly_invalid_spec()); | 423 options_url().possibly_invalid_spec()); |
| 425 info->SetString(info_keys::kHomepageUrlKey, | 424 info->SetString(info_keys::kHomepageUrlKey, |
| 426 GetHomepageURL().possibly_invalid_spec()); | 425 GetHomepageURL().possibly_invalid_spec()); |
| 427 } | 426 } |
| 428 | 427 |
| 429 Extension::Type Extension::GetType() const { | 428 Extension::Type Extension::GetType() const { |
| (...skipping 3116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3546 | 3545 |
| 3547 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3546 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 3548 const Extension* extension, | 3547 const Extension* extension, |
| 3549 const ExtensionPermissionSet* permissions, | 3548 const ExtensionPermissionSet* permissions, |
| 3550 Reason reason) | 3549 Reason reason) |
| 3551 : reason(reason), | 3550 : reason(reason), |
| 3552 extension(extension), | 3551 extension(extension), |
| 3553 permissions(permissions) {} | 3552 permissions(permissions) {} |
| 3554 | 3553 |
| 3555 } // namespace extensions | 3554 } // namespace extensions |
| OLD | NEW |