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

Unified Diff: ios/web/webui/web_ui_mojo_inttest.mm

Issue 2496733002: Mojo C++ bindings: switch ios/web mojom targets to use STL types. (Closed)
Patch Set: Created 4 years, 1 month 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 | « ios/web/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_mojo_inttest.mm
diff --git a/ios/web/webui/web_ui_mojo_inttest.mm b/ios/web/webui/web_ui_mojo_inttest.mm
index da7c3cf31a52880a23be3ad356778d18ace83c92..a223c33dc159869ec22196ad36fc3262cb14a2c3 100644
--- a/ios/web/webui/web_ui_mojo_inttest.mm
+++ b/ios/web/webui/web_ui_mojo_inttest.mm
@@ -49,16 +49,16 @@ class TestUIHandler
// TestUIHandlerMojo overrides.
void SetClientPage(TestPagePtr page) override { page_ = std::move(page); }
- void HandleJsMessage(const mojo::String& message) override {
- if (message.get() == "syn") {
+ void HandleJsMessage(const std::string& message) override {
+ if (message == "syn") {
// Received "syn" message from WebUI page, send "ack" as reply.
DCHECK(!syn_received_);
DCHECK(!fin_received_);
syn_received_ = true;
NativeMessageResultMojoPtr result(NativeMessageResultMojo::New());
- result->message = mojo::String::From("ack");
+ result->message = "ack";
page_->HandleNativeMessage(std::move(result));
- } else if (message.get() == "fin") {
+ } else if (message == "fin") {
// Received "fin" from the WebUI page in response to "ack".
DCHECK(syn_received_);
DCHECK(!fin_received_);
« no previous file with comments | « ios/web/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698