Commit d9f2dc4a authored by tfarina@chromium.org's avatar tfarina@chromium.org

views: Eliminate a wstring temp variable in UserDataDirDialogView.

BUG=23581
R=pkasting@chromium.org


Review URL: https://chromiumcodereview.appspot.com/10837198

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151225 0039d316-1c4b-4281-b951-d872f2087c98
parent c7d72f8a
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "base/logging.h" #include "base/logging.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/chrome_select_file_policy.h" #include "chrome/browser/ui/chrome_select_file_policy.h"
#include "chrome/browser/ui/user_data_dir_dialog.h" #include "chrome/browser/ui/user_data_dir_dialog.h"
#include "grit/chromium_strings.h" #include "grit/chromium_strings.h"
...@@ -56,14 +55,13 @@ void UserDataDirDialogView::DeleteDelegate() { ...@@ -56,14 +55,13 @@ void UserDataDirDialogView::DeleteDelegate() {
} }
bool UserDataDirDialogView::Accept() { bool UserDataDirDialogView::Accept() {
// Directory picker // Directory picker.
std::wstring dialog_title = UTF16ToWide(l10n_util::GetStringUTF16(
IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON));
HWND owning_hwnd = HWND owning_hwnd =
GetAncestor(message_box_view_->GetWidget()->GetNativeView(), GA_ROOT); GetAncestor(message_box_view_->GetWidget()->GetNativeView(), GA_ROOT);
select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_FOLDER, select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_FOLDER,
dialog_title, FilePath(), NULL, 0, l10n_util::GetStringUTF16(
FilePath::StringType(), owning_hwnd, NULL); IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON), FilePath(),
NULL, 0, FilePath::StringType(), owning_hwnd, NULL);
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment