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

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

Issue 10703145: Merge 144625 - Close any open menus on activation changes. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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/controls/menu/menu_controller.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
===================================================================
--- ui/views/widget/widget.cc (revision 146181)
+++ ui/views/widget/widget.cc (working copy)
@@ -924,19 +924,9 @@
}
void Widget::OnNativeWidgetActivationChanged(bool active) {
- if (!active) {
+ if (!active)
SaveWindowPlacement();
-#if defined(OS_CHROMEOS)
- // Close any open menus.
- // TODO(flackr|oshima): We should be doing this on !OS_MACOSX as before but
- // we will have to fix crbug.com/130799.
- MenuController* menu_controller = MenuController::GetActiveInstance();
- if (menu_controller)
- menu_controller->OnWidgetActivationChanged();
-#endif // defined(OS_CHROMEOS)
- }
-
FOR_EACH_OBSERVER(Observer, observers_,
OnWidgetActivationChanged(this, active));
}
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698