summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api
diff options
context:
space:
mode:
authorlimasdf <limasdf@gmail.com>2016-01-20 21:24:50 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-21 05:26:06 +0000
commitc8a1187b4dfc11061d8ba792c73225196c56c6aa (patch)
tree574ab2184d8e02b6bcfc28a5716eb38749b4efd6 /extensions/browser/api
parenta32c24edfa6d09499ba873ba616b35a1de8912e5 (diff)
downloadchromium_src-c8a1187b4dfc11061d8ba792c73225196c56c6aa.zip
chromium_src-c8a1187b4dfc11061d8ba792c73225196c56c6aa.tar.gz
chromium_src-c8a1187b4dfc11061d8ba792c73225196c56c6aa.tar.bz2
Expose versionName to management api
exposing versionName if 'version_name' is set in manifest.json BUG=445827 TEST=browser_tests --gtest_filter=ExtensionManagementApiTest.Basics Review URL: https://codereview.chromium.org/1590793005 Cr-Commit-Position: refs/heads/master@{#370631}
Diffstat (limited to 'extensions/browser/api')
-rw-r--r--extensions/browser/api/management/management_api.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/browser/api/management/management_api.cc b/extensions/browser/api/management/management_api.cc
index 2511aee..e1e72af 100644
--- a/extensions/browser/api/management/management_api.cc
+++ b/extensions/browser/api/management/management_api.cc
@@ -107,6 +107,8 @@ scoped_ptr<management::ExtensionInfo> CreateExtensionInfo(
info->enabled = registry->enabled_extensions().Contains(info->id);
info->offline_enabled = OfflineEnabledInfo::IsOfflineEnabled(&extension);
info->version = extension.VersionString();
+ if (!extension.version_name().empty())
+ info->version_name.reset(new std::string(extension.version_name()));
info->description = extension.description();
info->options_url = OptionsPageInfo::GetOptionsPage(&extension).spec();
info->homepage_url.reset(