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

Unified Diff: ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm

Issue 2481503002: Fix JavaScriptBlockingTestWebState constructor to initialize |observer_| (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm
diff --git a/ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm b/ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm
index d5b3b20e3cb938ee006dbdba4c10c02806578360..56de41edf9d61f341378f85cd63358b55722e614 100644
--- a/ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm
+++ b/ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm
@@ -17,6 +17,7 @@
// TestWebState subclass that allows simulating page loads.
class JavaScriptBlockingTestWebState : public web::TestWebState {
public:
+ JavaScriptBlockingTestWebState() : web::TestWebState(), observer_(nullptr) {}
~JavaScriptBlockingTestWebState() override {
if (observer_)
observer_->WebStateDestroyed();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698