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

Unified Diff: ui/views/widget/widget.cc

Issue 2953243002: FocusManagerFactory::Create() should return a unique_ptr. (Closed)
Patch Set: build 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 | « ui/views/focus/focus_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index a0394435bf7d0343de28ee58df12d72aa361e43a..32a50e8860a999193a1f5230de8d55a95377b4cb 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1069,7 +1069,7 @@ void Widget::OnNativeWidgetVisibilityChanged(bool visible) {
void Widget::OnNativeWidgetCreated(bool desktop_widget) {
if (is_top_level())
- focus_manager_.reset(FocusManagerFactory::Create(this, desktop_widget));
+ focus_manager_ = FocusManagerFactory::Create(this, desktop_widget);
native_widget_->InitModalType(widget_delegate_->GetModalType());
« no previous file with comments | « ui/views/focus/focus_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698