summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 20:07:59 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 20:07:59 +0000
commitbed319524bccde0384b7be7b5477b275e3c9b9f0 (patch)
tree6347e97dad2bd40ee66fb7bac6674c30f9f201c8 /chrome
parentcdaf8d04617e815d8e8fb0fe1c707a23cc583904 (diff)
downloadchromium_src-bed319524bccde0384b7be7b5477b275e3c9b9f0.zip
chromium_src-bed319524bccde0384b7be7b5477b275e3c9b9f0.tar.gz
chromium_src-bed319524bccde0384b7be7b5477b275e3c9b9f0.tar.bz2
Prevent warning on Mac about uninitialized variable by initializing the
variable in the failure case. BUG=none TEST=none Review URL: http://codereview.chromium.org/1534007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 55eaadd..dd53dcc 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -2485,6 +2485,7 @@ void TabContents::RunFileChooser(
dialog_type = SelectFileDialog::SELECT_SAVEAS_FILE;
break;
default:
+ dialog_type = SelectFileDialog::SELECT_OPEN_FILE; // Prevent warning.
NOTREACHED();
}
select_file_dialog_->SelectFile(dialog_type, params.title,