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

Side by Side Diff: chrome/browser/chromeos/options/vpn_config_view.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/options/vpn_config_view.h" 5 #include "chrome/browser/chromeos/options/vpn_config_view.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kUsername, 799 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kUsername,
800 &username_ui_data_); 800 &username_ui_data_);
801 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kPassword, 801 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kPassword,
802 &user_passphrase_ui_data_); 802 &user_passphrase_ui_data_);
803 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kSaveCredentials, 803 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kSaveCredentials,
804 &save_credentials_ui_data_); 804 &save_credentials_ui_data_);
805 } 805 }
806 806
807 void VPNConfigView::GetPropertiesError( 807 void VPNConfigView::GetPropertiesError(
808 const std::string& error_name, 808 const std::string& error_name,
809 scoped_ptr<base::DictionaryValue> error_data) { 809 std::unique_ptr<base::DictionaryValue> error_data) {
810 NET_LOG_ERROR("Shill Error from VpnConfigView: " + error_name, ""); 810 NET_LOG_ERROR("Shill Error from VpnConfigView: " + error_name, "");
811 } 811 }
812 812
813 void VPNConfigView::SetConfigProperties( 813 void VPNConfigView::SetConfigProperties(
814 base::DictionaryValue* properties) { 814 base::DictionaryValue* properties) {
815 int provider_type_index = GetProviderTypeIndex(); 815 int provider_type_index = GetProviderTypeIndex();
816 std::string user_passphrase = GetUserPassphrase(); 816 std::string user_passphrase = GetUserPassphrase();
817 std::string user_name = GetUsername(); 817 std::string user_name = GetUsername();
818 std::string group_name = GetGroupName(); 818 std::string group_name = GetGroupName();
819 switch (provider_type_index) { 819 switch (provider_type_index) {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 property_ui_data->ParseOncProperty( 1068 property_ui_data->ParseOncProperty(
1069 onc_source, 1069 onc_source,
1070 onc, 1070 onc,
1071 base::StringPrintf("%s.%s.%s", 1071 base::StringPrintf("%s.%s.%s",
1072 ::onc::network_config::kVPN, 1072 ::onc::network_config::kVPN,
1073 dict_key.c_str(), 1073 dict_key.c_str(),
1074 key.c_str())); 1074 key.c_str()));
1075 } 1075 }
1076 1076
1077 } // namespace chromeos 1077 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | chrome/browser/chromeos/options/wifi_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698