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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 12045037: Refactor modality-specific behavior from ConstrainedWindowViews to WebContentsModalDialogManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index fad5477f68d4773c93955f2d5e1eeed85b877224..0c6cdb43d656dc3ea7f028601675cded04b4c222 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -280,7 +280,7 @@ void AutofillDialogViews::Show() {
// Ownership of |contents_| is handed off by this call. The
// WebContentsModalDialog will take care of deleting itself after calling
// DeleteDelegate().
- window_ = new ConstrainedWindowViews(controller_->web_contents(), this);
+ window_ = ConstrainedWindowViews::Create(controller_->web_contents(), this);
focus_manager_ = window_->GetFocusManager();
focus_manager_->AddFocusChangeListener(this);
}

Powered by Google App Engine
This is Rietveld 408576698