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

Unified Diff: extensions/renderer/script_injection_callback.cc

Issue 2556153002: [Extensions] Convert more callers of CallModuleMethod (Closed)
Patch Set: revert doc change Created 4 years 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 | « extensions/renderer/script_injection_callback.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection_callback.cc
diff --git a/extensions/renderer/script_injection_callback.cc b/extensions/renderer/script_injection_callback.cc
index 8b911d1c28c844850d1a4f0ffdf8c4de0b08937d..c9c7fabd8e4a2f74889c8b29dd7f85bf65585a37 100644
--- a/extensions/renderer/script_injection_callback.cc
+++ b/extensions/renderer/script_injection_callback.cc
@@ -4,6 +4,8 @@
#include "extensions/renderer/script_injection_callback.h"
+#include "third_party/WebKit/public/platform/WebVector.h"
+
namespace extensions {
ScriptInjectionCallback::ScriptInjectionCallback(
@@ -16,7 +18,8 @@ ScriptInjectionCallback::~ScriptInjectionCallback() {
void ScriptInjectionCallback::completed(
const blink::WebVector<v8::Local<v8::Value> >& result) {
- injection_completed_callback_.Run(result);
+ std::vector<v8::Local<v8::Value>> stl_result(result.begin(), result.end());
+ injection_completed_callback_.Run(stl_result);
delete this;
}
« no previous file with comments | « extensions/renderer/script_injection_callback.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698