Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9306)

Unified Diff: chrome/common/extensions/api/extension_action/action_info.cc

Issue 12095023: Allow platform apps to add themselves to the Action Box. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use raw pointer + IconImage signature changed Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_action/action_info.cc
diff --git a/chrome/common/extensions/api/extension_action/action_info.cc b/chrome/common/extensions/api/extension_action/action_info.cc
index 5201575a942eb124cb55e900aac42e016b107a27..094923d755874afdde0688c42f54150d4989427a 100644
--- a/chrome/common/extensions/api/extension_action/action_info.cc
+++ b/chrome/common/extensions/api/extension_action/action_info.cc
@@ -55,6 +55,11 @@ const ActionInfo* ActionInfo::GetScriptBadgeInfo(const Extension* extension) {
}
// static
+const ActionInfo* ActionInfo::GetPageLauncherInfo(const Extension* extension) {
+ return GetActionInfo(extension, extension_manifest_keys::kPageLauncher);
+}
+
+// static
void ActionInfo::SetBrowserActionInfo(Extension* extension, ActionInfo* info) {
extension->SetManifestData(extension_manifest_keys::kBrowserAction,
new ActionInfoData(info));
@@ -66,4 +71,10 @@ void ActionInfo::SetScriptBadgeInfo(Extension* extension, ActionInfo* info) {
new ActionInfoData(info));
}
+// static
+void ActionInfo::SetPageLauncherInfo(Extension* extension, ActionInfo* info) {
+ extension->SetManifestData(extension_manifest_keys::kPageLauncher,
+ new ActionInfoData(info));
+}
+
} // namespace extensions
« no previous file with comments | « chrome/common/extensions/api/extension_action/action_info.h ('k') | chrome/common/extensions/api/page_launcher.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698