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

Unified Diff: chrome/common/extensions/manifest_handlers/extension_action_handler.cc

Issue 1779343002: [Extensions] Update installed bubble for extensions with synthesized actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/common/extensions/api/extension_action/action_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/manifest_handlers/extension_action_handler.cc
diff --git a/chrome/common/extensions/manifest_handlers/extension_action_handler.cc b/chrome/common/extensions/manifest_handlers/extension_action_handler.cc
index 15682c61dd2886a7c3d28c707934623b1b20d91d..3d2a465325ccc584c53978f9e99b06b5ee8ce514 100644
--- a/chrome/common/extensions/manifest_handlers/extension_action_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/extension_action_handler.cc
@@ -74,7 +74,9 @@ bool ExtensionActionHandler::Parse(Extension* extension,
// Set an empty page action. We use a page action (instead of a browser
// action) because the action should not be seen as enabled on every page.
- ActionInfo::SetPageActionInfo(extension, new ActionInfo());
+ scoped_ptr<ActionInfo> action_info(new ActionInfo());
+ action_info->synthesized = true;
+ ActionInfo::SetPageActionInfo(extension, action_info.release());
}
return true;
« no previous file with comments | « chrome/common/extensions/api/extension_action/action_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698