Index: third_party/WebKit/Source/core/page/ChromeClient.cpp |
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.cpp b/third_party/WebKit/Source/core/page/ChromeClient.cpp |
index 972b1dbc7adcffe79706ed637a0056225b4a55b5..a7c4ea868efbf805f6c00a50f6c8e5cf9fadac22 100644 |
--- a/third_party/WebKit/Source/core/page/ChromeClient.cpp |
+++ b/third_party/WebKit/Source/core/page/ChromeClient.cpp |
@@ -67,10 +67,11 @@ void ChromeClient::SetWindowRectWithAdjustment(const IntRect& pending_rect, |
} |
bool ChromeClient::CanOpenModalIfDuringPageDismissal( |
- Frame* main_frame, |
+ Frame& main_frame, |
ChromeClient::DialogType dialog, |
const String& message) { |
- for (Frame* frame = main_frame; frame; frame = frame->Tree().TraverseNext()) { |
+ for (Frame* frame = &main_frame; frame; |
+ frame = frame->Tree().TraverseNext()) { |
if (!frame->IsLocalFrame()) |
continue; |
LocalFrame& local_frame = ToLocalFrame(*frame); |