| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/options/password_manager_handler.h" | 5 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 {"passwordsNoExceptionsDescription", | 128 {"passwordsNoExceptionsDescription", |
| 129 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION}, | 129 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION}, |
| 130 {"passwordManagerImportPasswordButtonText", | 130 {"passwordManagerImportPasswordButtonText", |
| 131 IDS_PASSWORD_MANAGER_IMPORT_BUTTON}, | 131 IDS_PASSWORD_MANAGER_IMPORT_BUTTON}, |
| 132 {"passwordManagerExportPasswordButtonText", | 132 {"passwordManagerExportPasswordButtonText", |
| 133 IDS_PASSWORD_MANAGER_EXPORT_BUTTON}, | 133 IDS_PASSWORD_MANAGER_EXPORT_BUTTON}, |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 RegisterStrings(localized_strings, resources, arraysize(resources)); | 136 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 137 | 137 |
| 138 const ProfileSyncService* sync_service = | 138 const browser_sync::ProfileSyncService* sync_service = |
| 139 ProfileSyncServiceFactory::GetForProfile(GetProfile()); | 139 ProfileSyncServiceFactory::GetForProfile(GetProfile()); |
| 140 int title_id = | 140 int title_id = |
| 141 password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service) | 141 password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service) |
| 142 ? IDS_PASSWORD_MANAGER_SMART_LOCK_FOR_PASSWORDS | 142 ? IDS_PASSWORD_MANAGER_SMART_LOCK_FOR_PASSWORDS |
| 143 : IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE; | 143 : IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE; |
| 144 RegisterTitle(localized_strings, "passwordsPage", title_id); | 144 RegisterTitle(localized_strings, "passwordsPage", title_id); |
| 145 | 145 |
| 146 localized_strings->SetString("passwordManagerLearnMoreURL", | 146 localized_strings->SetString("passwordManagerLearnMoreURL", |
| 147 chrome::kPasswordManagerLearnMoreURL); | 147 chrome::kPasswordManagerLearnMoreURL); |
| 148 localized_strings->SetString( | 148 localized_strings->SetString( |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 password_manager_presenter_->GetAllPasswords(); | 408 password_manager_presenter_->GetAllPasswords(); |
| 409 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV", | 409 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV", |
| 410 password_list.size()); | 410 password_list.size()); |
| 411 password_manager::PasswordExporter::Export( | 411 password_manager::PasswordExporter::Export( |
| 412 path, password_list, content::BrowserThread::GetTaskRunnerForThread( | 412 path, password_list, content::BrowserThread::GetTaskRunnerForThread( |
| 413 content::BrowserThread::FILE) | 413 content::BrowserThread::FILE) |
| 414 .get()); | 414 .get()); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace options | 417 } // namespace options |
| OLD | NEW |