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

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 1898113002: No SelectFilePolicy for password import and export UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@341477_about_flags
Patch Set: Remove leak suppresion Created 4 years, 8 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 | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/password_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc
index 404018f310c9feb6f859c23084dcbb4682ceefb6..db091152ebb57002a8c985e455d1fec1443ee6ee 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc
@@ -21,7 +21,6 @@
#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
-#include "chrome/browser/ui/chrome_select_file_policy.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
@@ -326,10 +325,7 @@ void PasswordManagerHandler::HandlePasswordImport(const base::ListValue* args) {
DCHECK(!file_type_info.extensions.empty() &&
!file_type_info.extensions[0].empty());
file_type_info.include_all_files = true;
- ChromeSelectFilePolicy* select_file_policy =
- new ChromeSelectFilePolicy(web_ui()->GetWebContents());
- ANNOTATE_LEAKING_OBJECT_PTR(select_file_policy);
- select_file_dialog_ = ui::SelectFileDialog::Create(this, select_file_policy);
+ select_file_dialog_ = ui::SelectFileDialog::Create(this, nullptr);
select_file_dialog_->SelectFile(
ui::SelectFileDialog::SELECT_OPEN_FILE,
l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_IMPORT_DIALOG_TITLE),
@@ -391,10 +387,7 @@ void PasswordManagerHandler::HandlePasswordExport(const base::ListValue* args) {
DCHECK(!file_type_info.extensions.empty() &&
!file_type_info.extensions[0].empty());
file_type_info.include_all_files = true;
- ChromeSelectFilePolicy* select_file_policy =
- new ChromeSelectFilePolicy(web_ui()->GetWebContents());
- ANNOTATE_LEAKING_OBJECT_PTR(select_file_policy);
- select_file_dialog_ = ui::SelectFileDialog::Create(this, select_file_policy);
+ select_file_dialog_ = ui::SelectFileDialog::Create(this, nullptr);
select_file_dialog_->SelectFile(
ui::SelectFileDialog::SELECT_SAVEAS_FILE,
l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EXPORT_DIALOG_TITLE),
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698