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

Unified Diff: content/child/navigator_connect/service_port_dispatcher_impl.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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: content/child/navigator_connect/service_port_dispatcher_impl.cc
diff --git a/content/child/navigator_connect/service_port_dispatcher_impl.cc b/content/child/navigator_connect/service_port_dispatcher_impl.cc
index bc002a99c340f1ad0f988725211cf28b4fa1dd9e..8a63fd2785bcdc713279fbb1147d53d294c75f50 100644
--- a/content/child/navigator_connect/service_port_dispatcher_impl.cc
+++ b/content/child/navigator_connect/service_port_dispatcher_impl.cc
@@ -25,13 +25,13 @@ class WebConnectCallbacksImpl
~WebConnectCallbacksImpl() override {}
void onSuccess(const blink::WebServicePort& port) override {
- callback_.Run(SERVICE_PORT_CONNECT_RESULT_ACCEPT,
+ callback_.Run(ServicePortConnectResult::ACCEPT,
mojo::String::From<base::string16>(port.name),
mojo::String::From<base::string16>(port.data));
}
void onError() override {
- callback_.Run(SERVICE_PORT_CONNECT_RESULT_REJECT, mojo::String(""),
+ callback_.Run(ServicePortConnectResult::REJECT, mojo::String(""),
mojo::String(""));
}
@@ -67,7 +67,7 @@ void ServicePortDispatcherImpl::Connect(const mojo::String& target_url,
int32_t port_id,
const ConnectCallback& callback) {
if (!proxy_) {
- callback.Run(SERVICE_PORT_CONNECT_RESULT_REJECT, mojo::String(""),
+ callback.Run(ServicePortConnectResult::REJECT, mojo::String(""),
mojo::String(""));
return;
}

Powered by Google App Engine
This is Rietveld 408576698