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

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

Issue 2649073002: Use a new Supplement constructor in Navigator supplements (part 2) (Closed)
Patch Set: temp Created 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webusb/NavigatorUSB.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/NavigatorUSB.cpp b/third_party/WebKit/Source/modules/webusb/NavigatorUSB.cpp
index fa49c7d47b2aeaf70af53b024b97f9496f619c5e..449f759333e280850717efe23b69ce1dfff27787 100644
--- a/third_party/WebKit/Source/modules/webusb/NavigatorUSB.cpp
+++ b/third_party/WebKit/Source/modules/webusb/NavigatorUSB.cpp
@@ -32,7 +32,8 @@ DEFINE_TRACE(NavigatorUSB) {
Supplement<Navigator>::trace(visitor);
}
-NavigatorUSB::NavigatorUSB(Navigator& navigator) {
+NavigatorUSB::NavigatorUSB(Navigator& navigator)
+ : Supplement<Navigator>(navigator) {
if (navigator.frame())
m_usb = USB::create(*navigator.frame());
}
« no previous file with comments | « third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698