summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 23:20:08 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 23:20:08 +0000
commit30fdaad8397236d319832dd33fe3fd72e693693e (patch)
tree6eabfd1f490262488726642634c365c0c4996757 /chrome/browser/extensions
parenta169046c401dd3aace5c8b602ebacd6d5bd0d2b7 (diff)
downloadchromium_src-30fdaad8397236d319832dd33fe3fd72e693693e.zip
chromium_src-30fdaad8397236d319832dd33fe3fd72e693693e.tar.gz
chromium_src-30fdaad8397236d319832dd33fe3fd72e693693e.tar.bz2
Adding homagpageUrl to the ExtensionInfo in the management API.
BUG=66578 TEST=Try the unit test, or install an app from the webstore and see the URL in the results to a call from getAll(). Contributed by paulkinlan@google.com Original codereview at: http://codereview.chromium.org/6573001/ Review URL: http://codereview.chromium.org/6588018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_management_api.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc
index 45d1d96..2d64756 100644
--- a/chrome/browser/extensions/extension_management_api.cc
+++ b/chrome/browser/extensions/extension_management_api.cc
@@ -34,6 +34,7 @@ namespace {
const char kAppLaunchUrlKey[] = "appLaunchUrl";
const char kDescriptionKey[] = "description";
const char kEnabledKey[] = "enabled";
+const char kHomepageURLKey[] = "homepageUrl";
const char kIconsKey[] = "icons";
const char kIdKey[] = "id";
const char kIsAppKey[] = "isApp";
@@ -63,6 +64,8 @@ static DictionaryValue* CreateExtensionInfo(const Extension& extension,
info->SetString(kDescriptionKey, extension.description());
info->SetString(kOptionsUrlKey,
extension.options_url().possibly_invalid_spec());
+ info->SetString(kHomepageURLKey,
+ extension.GetHomepageURL().possibly_invalid_spec());
if (extension.is_app())
info->SetString(kAppLaunchUrlKey,
extension.GetFullLaunchURL().possibly_invalid_spec());