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

Unified Diff: content/shell/browser/layout_test/blink_test_controller.cc

Issue 2946103003: Protect against |main_window_| being null. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/blink_test_controller.cc
diff --git a/content/shell/browser/layout_test/blink_test_controller.cc b/content/shell/browser/layout_test/blink_test_controller.cc
index c2b441256a5d64d39da5391321a578275dc55a68..fcc342ad2ed1e5f64df21bcc6537ab729374e328 100644
--- a/content/shell/browser/layout_test/blink_test_controller.cc
+++ b/content/shell/browser/layout_test/blink_test_controller.cc
@@ -721,8 +721,10 @@ void BlinkTestController::OnTestFinished() {
}
void BlinkTestController::OnAllServiceWorkersCleared() {
- Send(new ShellViewMsg_Reset(
- main_window_->web_contents()->GetRenderViewHost()->GetRoutingID()));
+ if (main_window_) {
+ Send(new ShellViewMsg_Reset(
+ main_window_->web_contents()->GetRenderViewHost()->GetRoutingID()));
+ }
}
void BlinkTestController::OnImageDump(const std::string& actual_pixel_hash,
« 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