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

Unified Diff: ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm

Issue 2912373002: [iOS] Stop swizzling the |init| method of CameraController. (Closed)
Patch Set: Created 3 years, 7 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: ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm
diff --git a/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm b/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm
index 99912a1b569191fe8992e59d414286ac204bed03..c39eec386d21b7afdfdd41d3af8c7126c9de10f2 100644
--- a/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm
+++ b/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller.mm
@@ -81,7 +81,7 @@ - (instancetype)initWithDelegate:(id<QRScannerViewControllerDelegate>)delegate {
if (self) {
DCHECK(delegate);
_delegate = delegate;
- _cameraController = [[CameraController alloc] initWithDelegate:self];
+ _cameraController = [CameraController cameraControllerWithDelegate:self];
}
return self;
}

Powered by Google App Engine
This is Rietveld 408576698