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

Unified Diff: third_party/WebKit/Source/modules/webusb/USB.cpp

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase 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
Index: third_party/WebKit/Source/modules/webusb/USB.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USB.cpp b/third_party/WebKit/Source/modules/webusb/USB.cpp
index d3f179b5c361ecfa7299d96e27db1b255b19971d..c2ec9d3549cba204cbecd89226f31e8ec98a6342 100644
--- a/third_party/WebKit/Source/modules/webusb/USB.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USB.cpp
@@ -53,7 +53,7 @@ usb::DeviceFilterPtr convertDeviceFilter(const USBDeviceFilter& filter) {
USB::USB(LocalFrame& frame)
: ContextLifecycleObserver(frame.document()), m_clientBinding(this) {
- frame.interfaceProvider()->getInterface(mojo::GetProxy(&m_deviceManager));
+ frame.interfaceProvider()->getInterface(mojo::MakeRequest(&m_deviceManager));
m_deviceManager.set_connection_error_handler(convertToBaseCallback(WTF::bind(
&USB::onDeviceManagerConnectionError, wrapWeakPersistent(this))));
m_deviceManager->SetClient(m_clientBinding.CreateInterfacePtrAndBind());
@@ -112,7 +112,8 @@ ScriptPromise USB::requestDevice(ScriptState* scriptState,
resolver->reject(DOMException::create(NotSupportedError));
return promise;
}
- frame->interfaceProvider()->getInterface(mojo::GetProxy(&m_chooserService));
+ frame->interfaceProvider()->getInterface(
+ mojo::MakeRequest(&m_chooserService));
m_chooserService.set_connection_error_handler(
convertToBaseCallback(WTF::bind(&USB::onChooserServiceConnectionError,
wrapWeakPersistent(this))));
@@ -161,7 +162,7 @@ USBDevice* USB::getOrCreateDevice(usb::DeviceInfoPtr deviceInfo) {
if (!device) {
String guid = deviceInfo->guid;
usb::DevicePtr pipe;
- m_deviceManager->GetDevice(guid, mojo::GetProxy(&pipe));
+ m_deviceManager->GetDevice(guid, mojo::MakeRequest(&pipe));
device = USBDevice::create(std::move(deviceInfo), std::move(pipe),
getExecutionContext());
m_deviceCache.add(guid, device);

Powered by Google App Engine
This is Rietveld 408576698