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 @@
#include "base/logging.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/user_data_dir_dialog.h"
#include "grit/chromium_strings.h"
......@@ -56,14 +55,13 @@ void UserDataDirDialogView::DeleteDelegate() {
}
bool UserDataDirDialogView::Accept() {
// Directory picker
std::wstring dialog_title = UTF16ToWide(l10n_util::GetStringUTF16(
IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON));
// Directory picker.
HWND owning_hwnd =
GetAncestor(message_box_view_->GetWidget()->GetNativeView(), GA_ROOT);
select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_FOLDER,
dialog_title, FilePath(), NULL, 0,
FilePath::StringType(), owning_hwnd, NULL);
l10n_util::GetStringUTF16(
IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON), FilePath(),
NULL, 0, FilePath::StringType(), owning_hwnd, NULL);
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