| Index: components/autofill/content/browser/content_autofill_driver_factory.cc
|
| diff --git a/components/autofill/content/browser/content_autofill_driver_factory.cc b/components/autofill/content/browser/content_autofill_driver_factory.cc
|
| index 01322b8e35d19fa0f96ea24e3b8f01e8bb177c92..bb19f3c912be25da672fde49ab9fd17e39adb50c 100644
|
| --- a/components/autofill/content/browser/content_autofill_driver_factory.cc
|
| +++ b/components/autofill/content/browser/content_autofill_driver_factory.cc
|
| @@ -90,6 +90,14 @@ void ContentAutofillDriverFactory::RenderFrameDeleted(
|
| void ContentAutofillDriverFactory::DidNavigateMainFrame(
|
| const content::LoadCommittedDetails& details,
|
| const content::FrameNavigateParams& params) {
|
| + // This shouldn't happen, but is causing a lot of crashes.
|
| + // See http://crbug.com/438951
|
| + if (frame_driver_map_.find(web_contents()->GetMainFrame()) ==
|
| + frame_driver_map_.end()) {
|
| + LOG(ERROR) << "Could not find ContentAutofillDriver for main frame";
|
| + return;
|
| + }
|
| +
|
| frame_driver_map_[web_contents()->GetMainFrame()]->DidNavigateFrame(details,
|
| params);
|
| }
|
|
|