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

Unified Diff: ios/chrome/browser/ui/qr_scanner/camera_controller.h

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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/qr_scanner/camera_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/qr_scanner/camera_controller.h
diff --git a/ios/chrome/browser/ui/qr_scanner/camera_controller.h b/ios/chrome/browser/ui/qr_scanner/camera_controller.h
index 9a346c2198bdf4094a384a2c54a245e43c61ba0a..fdbf560d9ee8bcc582a0b08ac5c5771f73eba882 100644
--- a/ios/chrome/browser/ui/qr_scanner/camera_controller.h
+++ b/ios/chrome/browser/ui/qr_scanner/camera_controller.h
@@ -67,9 +67,9 @@ enum CameraState {
- (instancetype)init NS_UNAVAILABLE;
-// Initializes the controller with the |delegate|.
-- (instancetype)initWithDelegate:(id<CameraControllerDelegate>)delegate
- NS_DESIGNATED_INITIALIZER;
+// Returns a new controller with the |delegate|.
++ (instancetype)cameraControllerWithDelegate:
+ (id<CameraControllerDelegate>)delegate;
// Returns the app's authorization in regards to the camera.
- (AVAuthorizationStatus)getAuthorizationStatus;
« no previous file with comments | « no previous file | ios/chrome/browser/ui/qr_scanner/camera_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698