summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcem.kocagil@gmail.com <cem.kocagil@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 17:50:05 +0000
committercem.kocagil@gmail.com <cem.kocagil@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 17:50:05 +0000
commit1cbe1ed05b4c7cecf59bd653211fc3f794e5f2bf (patch)
tree9c425648d0ab1f62dafd4ce603790b55e14717f5
parentfd15fc90b39fd3755df7e5fc22d40ab9e1099948 (diff)
downloadchromium_src-1cbe1ed05b4c7cecf59bd653211fc3f794e5f2bf.zip
chromium_src-1cbe1ed05b4c7cecf59bd653211fc3f794e5f2bf.tar.gz
chromium_src-1cbe1ed05b4c7cecf59bd653211fc3f794e5f2bf.tar.bz2
Implement Shell::PlatformExit for Win content_shell
BUG=90445 TEST="File > Exit" menu item should work on Windows content_shell Review URL: http://codereview.chromium.org/9963036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130163 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/shell/shell_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/shell/shell_win.cc b/content/shell/shell_win.cc
index d69e00b..2254378 100644
--- a/content/shell/shell_win.cc
+++ b/content/shell/shell_win.cc
@@ -60,6 +60,10 @@ base::StringPiece Shell::PlatformResourceProvider(int key) {
}
void Shell::PlatformExit() {
+ std::vector<Shell*> windows = windows_;
+ for (std::vector<Shell*>::iterator it = windows.begin();
+ it != windows.end(); ++it)
+ DestroyWindow((*it)->window_);
}
void Shell::PlatformCleanUp() {