Commit abf77a96 authored by Peter K. Lee's avatar Peter K. Lee Committed by Commit Bot

Clean up PrintController by deleting unreachable code paths

TESTED=Print PDF, print webpage, print a PDF statement from bank web site.

Change-Id: I49ec6db1663f5e58d6f20a2ada10f61addf83f8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848548
Commit-Queue: Peter Lee <pkl@chromium.org>
Reviewed-by: default avatarMohammad Refaat <mrefaat@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704325}
parent 05b7a415
......@@ -52,7 +52,6 @@
#include "ios/chrome/browser/web_state_list/web_state_list.h"
#import "ios/chrome/browser/web_state_list/web_state_list_observer_bridge.h"
#include "ios/chrome/grit/ios_strings.h"
#include "net/url_request/url_request_context_getter.h"
#include "ui/base/l10n/l10n_util_mac.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
......@@ -324,8 +323,7 @@
initWithBaseViewController:self.viewController];
self.passwordBreachCoordinator.dispatcher = self.dispatcher;
self.printController = [[PrintController alloc]
initWithContextGetter:self.browserState->GetRequestContext()];
self.printController = [[PrintController alloc] init];
self.qrScannerCoordinator = [[QRScannerLegacyCoordinator alloc]
initWithBaseViewController:self.viewController];
......
......@@ -7,22 +7,11 @@
#import <UIKit/UIKit.h>
#include "base/memory/ref_counted.h"
#import "ios/chrome/browser/web/web_state_printer.h"
namespace net {
class URLRequestContextGetter;
} // namespace net
// Interface for printing.
@interface PrintController : NSObject <WebStatePrinter>
- (instancetype)initWithContextGetter:
(scoped_refptr<net::URLRequestContextGetter>)getter
NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
// Shows print UI for |view| with |title|.
- (void)printView:(UIView*)view withTitle:(NSString*)title;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment