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

Unified Diff: chrome/browser/debugger/devtools_file_helper.cc

Issue 10820034: Remove redirection header and add "ui::" before all SelectFileDialog usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuploading for different try run. Created 8 years, 5 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 | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | chrome/browser/download/download_file_picker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_file_helper.cc
diff --git a/chrome/browser/debugger/devtools_file_helper.cc b/chrome/browser/debugger/devtools_file_helper.cc
index 188c8c8a3dfb31ee0c6aad34a0997095de7c97a1..6c96dcc780f6f9374ae90e4ed2fa78096da993a5 100644
--- a/chrome/browser/debugger/devtools_file_helper.cc
+++ b/chrome/browser/debugger/devtools_file_helper.cc
@@ -18,10 +18,10 @@
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_select_file_policy.h"
-#include "chrome/browser/ui/select_file_dialog.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/download_manager.h"
+#include "ui/base/dialogs/select_file_dialog.h"
using content::BrowserContext;
using content::BrowserThread;
@@ -34,12 +34,12 @@ base::LazyInstance<FilePath>::Leaky
} // namespace
-class DevToolsFileHelper::SaveAsDialog : public SelectFileDialog::Listener,
+class DevToolsFileHelper::SaveAsDialog : public ui::SelectFileDialog::Listener,
public base::RefCounted<SaveAsDialog> {
public:
explicit SaveAsDialog(DevToolsFileHelper* helper)
: helper_(helper) {
- select_file_dialog_ = SelectFileDialog::Create(
+ select_file_dialog_ = ui::SelectFileDialog::Create(
this, new ChromeSelectFilePolicy(NULL));
}
@@ -55,7 +55,7 @@ class DevToolsFileHelper::SaveAsDialog : public SelectFileDialog::Listener,
url_ = url;
content_ = content;
- select_file_dialog_->SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE,
+ select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_SAVEAS_FILE,
string16(),
initial_path,
NULL,
@@ -65,7 +65,7 @@ class DevToolsFileHelper::SaveAsDialog : public SelectFileDialog::Listener,
NULL);
}
- // SelectFileDialog::Listener implementation.
+ // ui::SelectFileDialog::Listener implementation.
virtual void FileSelected(const FilePath& path,
int index, void* params) {
if (helper_)
@@ -87,7 +87,7 @@ class DevToolsFileHelper::SaveAsDialog : public SelectFileDialog::Listener,
friend class base::RefCounted<SaveAsDialog>;
virtual ~SaveAsDialog() {}
- scoped_refptr<SelectFileDialog> select_file_dialog_;
+ scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
std::string url_;
std::string content_;
DevToolsFileHelper* helper_;
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | chrome/browser/download/download_file_picker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698