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

Unified Diff: chrome/renderer/extensions/page_actions_custom_bindings.cc

Issue 12042096: Move page action manifest parsing out of Extension; the first multi-key manifest handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/renderer/extensions/page_actions_custom_bindings.cc
diff --git a/chrome/renderer/extensions/page_actions_custom_bindings.cc b/chrome/renderer/extensions/page_actions_custom_bindings.cc
index 5f1735e44a084ed588b01a55ff3df82a516a0f33..ab3cede528a863b212e6e6354623566a843d62d4 100644
--- a/chrome/renderer/extensions/page_actions_custom_bindings.cc
+++ b/chrome/renderer/extensions/page_actions_custom_bindings.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "chrome/renderer/extensions/dispatcher.h"
#include "grit/renderer_resources.h"
#include "v8/include/v8.h"
@@ -30,8 +31,8 @@ v8::Handle<v8::Value> PageActionsCustomBindings::GetCurrentPageActions(
CHECK(extension);
v8::Local<v8::Array> page_action_vector = v8::Array::New();
- if (extension->page_action_info()) {
- std::string id = extension->page_action_info()->id;
+ if (ActionInfo::GetPageActionInfo(extension)) {
+ std::string id = ActionInfo::GetPageActionInfo(extension)->id;
page_action_vector->Set(v8::Integer::New(0),
v8::String::New(id.c_str(), id.size()));
}

Powered by Google App Engine
This is Rietveld 408576698