Commit f342e7ca authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Check OmniboxPopup is not loaded when setting incognito style

This CL adds a DCHECK to the omnibox presenter view controller to
check that the incognito style is set before the view is loaded.

Bug: 797239
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I1bf56e1f4f16c8b4cc0dbbc35267dbb37f80ebb2
Reviewed-on: https://chromium-review.googlesource.com/846989Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526650}
parent f3969c1b
...@@ -153,6 +153,13 @@ UIColor* BackgroundColorIncognito() { ...@@ -153,6 +153,13 @@ UIColor* BackgroundColorIncognito() {
[self layoutRows]; [self layoutRows];
} }
#pragma mark - Properties accessors
- (void)setIncognito:(BOOL)incognito {
DCHECK(!self.viewLoaded);
_incognito = incognito;
}
#pragma mark - AutocompleteResultConsumer #pragma mark - AutocompleteResultConsumer
- (void)updateMatches:(NSArray<id<AutocompleteSuggestion>>*)result - (void)updateMatches:(NSArray<id<AutocompleteSuggestion>>*)result
......
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