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

Side by Side Diff: chrome/browser/download/download_file_picker.cc

Issue 13937002: Really fix build after r193020. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/download/download_file_picker.h" 5 #include "chrome/browser/download/download_file_picker.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/download/download_prefs.h" 8 #include "chrome/browser/download/download_prefs.h"
9 #include "chrome/browser/platform_util.h" 9 #include "chrome/browser/platform_util.h"
10 #include "chrome/browser/ui/chrome_select_file_policy.h" 10 #include "chrome/browser/ui/chrome_select_file_policy.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 file_type_info.support_drive = true; 84 file_type_info.support_drive = true;
85 gfx::NativeWindow owning_window = web_contents ? 85 gfx::NativeWindow owning_window = web_contents ?
86 platform_util::GetTopLevel(web_contents->GetView()->GetNativeView()) : 86 platform_util::GetTopLevel(web_contents->GetView()->GetNativeView()) :
87 NULL; 87 NULL;
88 88
89 select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_SAVEAS_FILE, 89 select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_SAVEAS_FILE,
90 string16(), 90 string16(),
91 suggested_path_, 91 suggested_path_,
92 &file_type_info, 92 &file_type_info,
93 0, 93 0,
94 FILE_PATH_LITERAL(std::string()), 94 base::FilePath::StringType(),
95 owning_window, 95 owning_window,
96 NULL); 96 NULL);
97 } 97 }
98 98
99 DownloadFilePicker::~DownloadFilePicker() { 99 DownloadFilePicker::~DownloadFilePicker() {
100 } 100 }
101 101
102 void DownloadFilePicker::InitSuggestedPath( 102 void DownloadFilePicker::InitSuggestedPath(
103 DownloadItem* item, 103 DownloadItem* item,
104 const base::FilePath& suggested_path) { 104 const base::FilePath& suggested_path) {
(...skipping 16 matching lines...) Expand all
121 RecordFileSelected(path); 121 RecordFileSelected(path);
122 OnFileSelected(path); 122 OnFileSelected(path);
123 // Deletes |this| 123 // Deletes |this|
124 } 124 }
125 125
126 void DownloadFilePicker::FileSelectionCanceled(void* params) { 126 void DownloadFilePicker::FileSelectionCanceled(void* params) {
127 RecordFilePickerResult(download_manager_, FILE_PICKER_CANCEL); 127 RecordFilePickerResult(download_manager_, FILE_PICKER_CANCEL);
128 OnFileSelected(base::FilePath()); 128 OnFileSelected(base::FilePath());
129 // Deletes |this| 129 // Deletes |this|
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_file_helper.cc ('k') | chrome/browser/extensions/api/bookmarks/bookmarks_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698