MITM interstitial: Unnecessary #if defined(OS_IOS) blocks in SSLErrorHandler |
||||
Issue descriptionchrome/browser/ssl/ssl_error_handler.cc contains some `#if defined(OS_IOS)` blocks for the MITM interstitial code. Unless I'm very confused, I don't think we need those since this code isn't used on iOS.
,
Sep 6 2017
Yeah, sorry, I meant !defined. e.g. https://cs.chromium.org/chromium/src/chrome/browser/ssl/ssl_error_handler.cc?q=ssl_error_handler&sq=package:chromium&l=287 I still don't understand why we need those? Isn't that whole file not used on iOS?
,
Sep 6 2017
I don't see it being specifically excluded for iOS. It's part of the "browser" library. Is that not used in iOS builds? (I don't know much about iOS builds) If so, yes we can get rid of them.
,
Sep 6 2017
I might be totally confused but I thought nothing in chrome/browser is used on iOS because it all has //content dependencies, which aren't allowed on iOS. +eugenebut to confirm
,
Sep 7 2017
iOS does not use any code from //chrome. iOS uses //ios/chrome.
,
Sep 8 2017
I'll take this one. I was doing something similar for captive portals too.
,
Sep 11 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c commit ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c Author: Mustafa Acer <meacer@chromium.org> Date: Mon Sep 11 20:31:01 2017 Remove extra OS_IOS statements from SSL error handling iOS code doesn't depend on chrome/browser so these checks are not necessary. Bug: 762584 Change-Id: If4dd9fa9d08f43e1d76a9d14bc829bc30730d4ab Reviewed-on: https://chromium-review.googlesource.com/660412 Reviewed-by: Emily Stark <estark@chromium.org> Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Cr-Commit-Position: refs/heads/master@{#501023} [modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_browser_tests.cc [modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_error_handler.cc [modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_error_handler_unittest.cc
,
Sep 11 2017
|
||||
►
Sign in to add a comment |
||||
Comment 1 by mea...@chromium.org
, Sep 6 2017