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

Side by Side Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } 249 }
250 250
251 void PasswordManagerHandler::ShowPassword( 251 void PasswordManagerHandler::ShowPassword(
252 size_t index, 252 size_t index,
253 const std::string& origin_url, 253 const std::string& origin_url,
254 const std::string& username, 254 const std::string& username,
255 const base::string16& password_value) { 255 const base::string16& password_value) {
256 // Call back the front end to reveal the password. 256 // Call back the front end to reveal the password.
257 web_ui()->CallJavascriptFunctionUnsafe( 257 web_ui()->CallJavascriptFunctionUnsafe(
258 "PasswordManager.showPassword", 258 "PasswordManager.showPassword",
259 base::FundamentalValue(static_cast<int>(index)), 259 base::Value(static_cast<int>(index)),
260 base::StringValue(password_value)); 260 base::StringValue(password_value));
261 } 261 }
262 262
263 void PasswordManagerHandler::HandleUpdatePasswordLists( 263 void PasswordManagerHandler::HandleUpdatePasswordLists(
264 const base::ListValue* args) { 264 const base::ListValue* args) {
265 password_manager_presenter_->UpdatePasswordLists(); 265 password_manager_presenter_->UpdatePasswordLists();
266 } 266 }
267 267
268 void PasswordManagerHandler::SetPasswordList( 268 void PasswordManagerHandler::SetPasswordList(
269 const std::vector<std::unique_ptr<autofill::PasswordForm>>& password_list) { 269 const std::vector<std::unique_ptr<autofill::PasswordForm>>& password_list) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | chrome/browser/ui/webui/options/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698