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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 77e35efbe3cba8f86c7d48bec6d05404d65fc5ae..44073fe3bc5c0e6c30afeba607a0fe80ecc41769 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -68,7 +68,6 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/common/message_port_types.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/ssl_status.h"
#include "jni/AwContents_jni.h"
@@ -1241,14 +1240,11 @@ void AwContents::PostMessageToFrame(JNIEnv* env,
base::Unretained(AwMessagePortServiceImpl::GetInstance()),
j_ports));
}
- std::vector<content::TransferredMessagePort> ports(j_ports.size());
- for (size_t i = 0; i < j_ports.size(); ++i)
- ports[i].id = j_ports[i];
content::MessagePortProvider::PostMessageToFrame(web_contents_.get(),
source_origin,
j_target_origin,
j_message,
- ports);
+ j_ports);
}
scoped_refptr<AwMessagePortMessageFilter>
« no previous file with comments | « android_webview/browser/aw_message_port_message_filter.cc ('k') | chrome/browser/printing/print_dialog_cloud_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698