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

Unified Diff: chrome/browser/views/select_file_dialog.cc

Issue 2029007: Fix for assert in SavePackage::ContinueSave(): save package type index outsid... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/select_file_dialog.cc
===================================================================
--- chrome/browser/views/select_file_dialog.cc (revision 46815)
+++ chrome/browser/views/select_file_dialog.cc (working copy)
@@ -27,6 +27,7 @@
namespace {
static const wchar_t* kKeyNamePath = L"path";
+static const int kSaveCompletePageIndex = 2;
}; // namespace
@@ -234,7 +235,8 @@
dict->GetString(kKeyNamePath, &path_string)) {
FilePath path = FilePath::FromWStringHack(path_string);
- listener_->FileSelected(path, 0, delegate->params_);
+ listener_->FileSelected(path, kSaveCompletePageIndex,
+ delegate->params_);
notification_fired = true;
}
} else if (delegate->type_ == SELECT_OPEN_MULTI_FILE) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698