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

Unified Diff: chrome/browser/download/download_file_picker.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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
Index: chrome/browser/download/download_file_picker.cc
===================================================================
--- chrome/browser/download/download_file_picker.cc (revision 116331)
+++ chrome/browser/download/download_file_picker.cc (working copy)
@@ -8,15 +8,16 @@
#include "chrome/browser/platform_util.h"
#include "chrome/browser/profiles/profile.h"
#include "content/browser/download/save_package.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
using content::DownloadManager;
+using content::WebContents;
DownloadFilePicker::DownloadFilePicker(
DownloadManager* download_manager,
- TabContents* tab_contents,
+ WebContents* web_contents,
const FilePath& suggested_path,
void* params)
: download_manager_(download_manager) {
@@ -29,14 +30,14 @@
file_type_info.extensions[0].push_back(extension);
}
file_type_info.include_all_files = true;
- gfx::NativeWindow owning_window = tab_contents ?
- platform_util::GetTopLevel(tab_contents->GetNativeView()) : NULL;
+ gfx::NativeWindow owning_window = web_contents ?
+ platform_util::GetTopLevel(web_contents->GetNativeView()) : NULL;
select_file_dialog_->SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE,
string16(),
suggested_path,
&file_type_info, 0, FILE_PATH_LITERAL(""),
- tab_contents, owning_window, params);
+ web_contents, owning_window, params);
}
DownloadFilePicker::~DownloadFilePicker() {
« no previous file with comments | « chrome/browser/download/download_file_picker.h ('k') | chrome/browser/download/download_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698