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

Unified Diff: Source/modules/webmidi/MIDIController.h

Issue 220333003: Apply OwnPtr|PassOwnPtr to handle member variables and arguments in MIDIClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix a unit test #2 Created 6 years, 9 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: Source/modules/webmidi/MIDIController.h
diff --git a/Source/modules/webmidi/MIDIController.h b/Source/modules/webmidi/MIDIController.h
index 3e0a9de7128834f429a7c7a31676a1986e032ca9..35fcf891e116351f437b3c0dcde74b8f540bd5f4 100644
--- a/Source/modules/webmidi/MIDIController.h
+++ b/Source/modules/webmidi/MIDIController.h
@@ -46,15 +46,15 @@ public:
void requestSysexPermission(PassRefPtrWillBeRawPtr<MIDIAccess>);
void cancelSysexPermissionRequest(MIDIAccess*);
- static PassOwnPtr<MIDIController> create(MIDIClient*);
+ static PassOwnPtr<MIDIController> create(PassOwnPtr<MIDIClient>);
static const char* supplementName();
static MIDIController* from(Page* page) { return static_cast<MIDIController*>(Supplement<Page>::from(page, supplementName())); }
protected:
- explicit MIDIController(MIDIClient*);
+ explicit MIDIController(PassOwnPtr<MIDIClient>);
private:
- MIDIClient* m_client;
+ OwnPtr<MIDIClient> m_client;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698