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

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, 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/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 6bc09c4f5a6bf115014c13b2539889cc27bae5ab..77ab867b5f28af8521fa387bc4d3a32138de718f 100644
--- a/chrome/renderer/extensions/page_actions_custom_bindings.cc
+++ b/chrome/renderer/extensions/page_actions_custom_bindings.cc
@@ -32,8 +32,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