diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 17:15:42 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 17:15:42 +0000 |
commit | 1a3861a91760e4f95e580c15592eadc0c13452ae (patch) | |
tree | 50410349e0a61ff0b7b63210f9824916569e8f17 /chrome/browser/views/user_data_dir_dialog.cc | |
parent | b41f1fc60dae06b6b5070d3d12ff2c38b0c0dd52 (diff) | |
download | chromium_src-1a3861a91760e4f95e580c15592eadc0c13452ae.zip chromium_src-1a3861a91760e4f95e580c15592eadc0c13452ae.tar.gz chromium_src-1a3861a91760e4f95e580c15592eadc0c13452ae.tar.bz2 |
Fix the "pick a new user data dir" dialog on windows.
There were three things to be fixed:
1) We don't need to run a separate message loop after the
dialog closes. The MessageLoopForUI handles this properly.
2) When tearing down browser_process_impl, io_loop
hasn't been initialized yet, so we check to make sure it
exists before using it.
3) We don't call window->Close() because that deletes the
dialog class before we're done using it. This means we leak
the window, but that's ok because we're going to exit anyway.
Review URL: http://codereview.chromium.org/114004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/user_data_dir_dialog.cc')
-rw-r--r-- | chrome/browser/views/user_data_dir_dialog.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/chrome/browser/views/user_data_dir_dialog.cc b/chrome/browser/views/user_data_dir_dialog.cc index 7c30c85..00aef5f 100644 --- a/chrome/browser/views/user_data_dir_dialog.cc +++ b/chrome/browser/views/user_data_dir_dialog.cc @@ -92,7 +92,6 @@ void UserDataDirDialog::FileSelected(const FilePath& path, int index, void* params) { user_data_dir_ = path.ToWStringHack(); is_blocking_ = false; - window()->Close(); } void UserDataDirDialog::FileSelectionCanceled(void* params) { |