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

Unified Diff: chrome/browser/extensions/extension_process_manager.cc

Issue 275007: Update page action manifest parsing to match the new format. (Closed)
Patch Set: cleanup Created 11 years, 2 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/browser/extensions/extension_process_manager.cc
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index 9ae47a7e3b86f13e790e625b9b5feec22680f29e..e9bb7c49c090bbec6d4ab098ad85904e02dac9ab 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -130,11 +130,8 @@ void ExtensionProcessManager::RegisterExtensionProcess(
std::vector<std::string> page_action_ids;
Extension* extension = extension_service->GetExtensionById(extension_id);
- for (ExtensionActionMap::const_iterator i =
- extension->page_actions().begin();
- i != extension->page_actions().end(); ++i) {
- page_action_ids.push_back(i->first);
- }
+ if (extension->page_action())
+ page_action_ids.push_back(extension->page_action()->id());
RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
rph->Send(new ViewMsg_Extension_UpdatePageActions(extension_id,
« no previous file with comments | « chrome/browser/extensions/extension_page_actions_module.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698