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

Unified Diff: chrome/browser/chromeos/options/vpn_config_view.cc

Issue 1417713008: Remove const std::string return by std::string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/vpn_config_view.cc
diff --git a/chrome/browser/chromeos/options/vpn_config_view.cc b/chrome/browser/chromeos/options/vpn_config_view.cc
index de4648c262706d3c8ee0203dff44b0ae6cead725..23f0218eb25e27603322a09f284b2c4276da3512 100644
--- a/chrome/browser/chromeos/options/vpn_config_view.cc
+++ b/chrome/browser/chromeos/options/vpn_config_view.cc
@@ -403,19 +403,19 @@ void VPNConfigView::InitFocus() {
view_to_focus->RequestFocus();
}
-const std::string VPNConfigView::GetService() const {
+std::string VPNConfigView::GetService() const {
if (service_textfield_ != NULL)
return GetTextFromField(service_textfield_, true);
return service_path_;
}
-const std::string VPNConfigView::GetServer() const {
+std::string VPNConfigView::GetServer() const {
if (server_textfield_ != NULL)
return GetTextFromField(server_textfield_, true);
return std::string();
}
-const std::string VPNConfigView::GetPSKPassphrase() const {
+std::string VPNConfigView::GetPSKPassphrase() const {
if (psk_passphrase_textfield_ &&
enable_psk_passphrase_ &&
psk_passphrase_textfield_->visible())
@@ -423,23 +423,23 @@ const std::string VPNConfigView::GetPSKPassphrase() const {
return std::string();
}
-const std::string VPNConfigView::GetUsername() const {
+std::string VPNConfigView::GetUsername() const {
return GetTextFromField(username_textfield_, true);
}
-const std::string VPNConfigView::GetUserPassphrase() const {
+std::string VPNConfigView::GetUserPassphrase() const {
return GetPassphraseFromField(user_passphrase_textfield_);
}
-const std::string VPNConfigView::GetGroupName() const {
+std::string VPNConfigView::GetGroupName() const {
return GetTextFromField(group_name_textfield_, false);
}
-const std::string VPNConfigView::GetOTP() const {
+std::string VPNConfigView::GetOTP() const {
return GetTextFromField(otp_textfield_, true);
}
-const std::string VPNConfigView::GetServerCACertPEM() const {
+std::string VPNConfigView::GetServerCACertPEM() const {
int index = server_ca_cert_combobox_ ?
server_ca_cert_combobox_->selected_index() : 0;
if (index == 0) {
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698