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

Unified Diff: components/autofill/content/browser/request_autocomplete_manager.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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
Index: components/autofill/content/browser/request_autocomplete_manager.cc
diff --git a/components/autofill/content/browser/request_autocomplete_manager.cc b/components/autofill/content/browser/request_autocomplete_manager.cc
index 89c08bf7823ff9dbc28dcca21e1f39e509bfe101..df2d095b42042a0a46632f2b0182b9f4392569eb 100644
--- a/components/autofill/content/browser/request_autocomplete_manager.cc
+++ b/components/autofill/content/browser/request_autocomplete_manager.cc
@@ -9,7 +9,7 @@
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/common/autofill_data_validation.h"
#include "components/autofill/core/common/form_data.h"
-#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "third_party/WebKit/public/web/WebFormElement.h"
#include "url/gurl.h"
@@ -66,13 +66,7 @@ void RequestAutocompleteManager::ReturnAutocompleteResult(
AutofillClient::RequestAutocompleteResult result,
const base::string16& debug_message,
const FormStructure* form_structure) {
- // autofill_driver_->web_contents() will be NULL when the interactive
- // autocomplete is closed due to a tab or browser window closing.
- if (!autofill_driver_->web_contents())
- return;
-
- content::RenderViewHost* host =
- autofill_driver_->web_contents()->GetRenderViewHost();
+ content::RenderFrameHost* host = autofill_driver_->render_frame_host();
if (!host)
return;

Powered by Google App Engine
This is Rietveld 408576698