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

Unified Diff: android_webview/native/aw_contents.cc

Issue 920873003: Return created channels synchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable a test for real and remove a wrong assertion Created 5 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/aw_message_port_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 28a715f08b80b0fc5762869a11a6fc171bdd2adc..0990fb7455c787f4b9ba4e1beb2b994f9326d720 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1086,7 +1086,6 @@ void AwContents::PostMessageToFrame(JNIEnv* env, jobject obj,
base::Unretained(AwMessagePortServiceImpl::GetInstance()),
j_ports));
}
-
content::MessagePortProvider::PostMessageToFrame(web_contents_.get(),
j_source_origin,
j_target_origin,
@@ -1108,9 +1107,9 @@ AwContents::GetMessagePortMessageFilter() {
}
void AwContents::CreateMessageChannel(JNIEnv* env, jobject obj,
- jobject callback) {
+ jobjectArray ports) {
- AwMessagePortServiceImpl::GetInstance()->CreateMessageChannel(env, callback,
+ AwMessagePortServiceImpl::GetInstance()->CreateMessageChannel(env, ports,
GetMessagePortMessageFilter());
}
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/aw_message_port_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698