summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/widget.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 03:47:31 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 03:47:31 +0000
commit66d22164c2aded1403643b52a9763f492acbbdcc (patch)
tree17f103ef313956ce3d6039663701fb52358df6cc /ui/views/widget/widget.cc
parentb233717168b03e58e2110897e96686ce7ea501f4 (diff)
downloadchromium_src-66d22164c2aded1403643b52a9763f492acbbdcc.zip
chromium_src-66d22164c2aded1403643b52a9763f492acbbdcc.tar.gz
chromium_src-66d22164c2aded1403643b52a9763f492acbbdcc.tar.bz2
Get rid of the EnableClose() infrastructure in Widget.
Only one place was left using it (FirstRunSearchEngineView), and Brian said that didn't need to use it if it would just pick the first of the engine choices (prior to randomization) as the window was closed. http://crbug.com/102581 TEST=unittests, and: run organic first run chrome, close the search engine selector, the Google should be the default. run organic first run Chrome, choose a non-Google engine, it should be the default. Review URL: http://codereview.chromium.org/8618001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/widget.cc')
-rw-r--r--ui/views/widget/widget.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 857dac5..53c1577 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -489,12 +489,6 @@ void Widget::CloseNow() {
native_widget_->CloseNow();
}
-void Widget::EnableClose(bool enable) {
- if (non_client_view_)
- non_client_view_->EnableClose(enable);
- native_widget_->EnableClose(enable);
-}
-
void Widget::Show() {
if (non_client_view_) {
if (saved_show_state_ == ui::SHOW_STATE_MAXIMIZED &&