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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.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
Index: chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc
index c5607c72bd65a28043478cd5619c7eafb6dde070..60c3d9f398a398ef65ebca91685fc9576972dd58 100644
--- a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc
@@ -42,8 +42,8 @@ namespace options2 {
namespace {
// Returns info about extensions for files we support as user images.
-SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() {
- SelectFileDialog::FileTypeInfo file_type_info;
+ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() {
+ ui::SelectFileDialog::FileTypeInfo file_type_info;
file_type_info.extensions.resize(5);
file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("bmp"));
@@ -141,7 +141,7 @@ void ChangePictureOptionsHandler::SendDefaultImages() {
void ChangePictureOptionsHandler::HandleChooseFile(const ListValue* args) {
DCHECK(args && args->empty());
- select_file_dialog_ = SelectFileDialog::Create(
+ select_file_dialog_ = ui::SelectFileDialog::Create(
this, new ChromeSelectFilePolicy(web_ui()->GetWebContents()));
FilePath downloads_path;
@@ -151,11 +151,11 @@ void ChangePictureOptionsHandler::HandleChooseFile(const ListValue* args) {
}
// Static so we initialize it only once.
- CR_DEFINE_STATIC_LOCAL(SelectFileDialog::FileTypeInfo, file_type_info,
+ CR_DEFINE_STATIC_LOCAL(ui::SelectFileDialog::FileTypeInfo, file_type_info,
(GetUserImageFileTypeInfo()));
select_file_dialog_->SelectFile(
- SelectFileDialog::SELECT_OPEN_FILE,
+ ui::SelectFileDialog::SELECT_OPEN_FILE,
l10n_util::GetStringUTF16(IDS_DOWNLOAD_TITLE),
downloads_path,
&file_type_info,

Powered by Google App Engine
This is Rietveld 408576698