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

Unified Diff: ios/web/web_state/web_state_impl.mm

Issue 2802613005: Add a comment and DCHECK to require |session_storage| to be non-nil in WebState::CreateWithStorageS… (Closed)
Patch Set: Created 3 years, 8 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 | « ios/web/public/web_state/web_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index 78d6cc08e3c1939adeecac6831e828e586b6261a..1a430b76f1e5de0c3eceb7f27e18bc166514435e 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -57,6 +57,7 @@ std::unique_ptr<WebState> WebState::Create(const CreateParams& params) {
std::unique_ptr<WebState> WebState::CreateWithStorageSession(
const CreateParams& params,
CRWSessionStorage* session_storage) {
+ DCHECK(session_storage);
std::unique_ptr<WebStateImpl> web_state(
new WebStateImpl(params, session_storage));
« no previous file with comments | « ios/web/public/web_state/web_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698