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

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

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Fix various unit-tests Created 3 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"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/chromeos/enrollment_dialog_view.h" 14 #include "chrome/browser/chromeos/enrollment_dialog_view.h"
15 #include "chrome/browser/chromeos/net/shill_error.h" 15 #include "chrome/browser/chromeos/net/shill_error.h"
16 #include "chrome/browser/profiles/profile_manager.h" 16 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/ui/views/harmony/layout_delegate.h" 17 #include "chrome/browser/ui/views/harmony/chrome_views_layout_delegate.h"
18 #include "chrome/browser/ui/views/layout_utils.h" 18 #include "chrome/browser/ui/views/layout_utils.h"
19 #include "chrome/common/net/x509_certificate_model.h" 19 #include "chrome/common/net/x509_certificate_model.h"
20 #include "chrome/grit/generated_resources.h" 20 #include "chrome/grit/generated_resources.h"
21 #include "chromeos/login/login_state.h" 21 #include "chromeos/login/login_state.h"
22 #include "chromeos/network/network_configuration_handler.h" 22 #include "chromeos/network/network_configuration_handler.h"
23 #include "chromeos/network/network_connect.h" 23 #include "chromeos/network/network_connect.h"
24 #include "chromeos/network/network_event_log.h" 24 #include "chromeos/network/network_event_log.h"
25 #include "chromeos/network/network_state.h" 25 #include "chromeos/network/network_state.h"
26 #include "chromeos/network/network_state_handler.h" 26 #include "chromeos/network/network_state_handler.h"
27 #include "chromeos/network/network_ui_data.h" 27 #include "chromeos/network/network_ui_data.h"
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 void VPNConfigView::Init() { 500 void VPNConfigView::Init() {
501 const NetworkState* vpn = NULL; 501 const NetworkState* vpn = NULL;
502 if (!service_path_.empty()) { 502 if (!service_path_.empty()) {
503 vpn = NetworkHandler::Get()->network_state_handler()-> 503 vpn = NetworkHandler::Get()->network_state_handler()->
504 GetNetworkState(service_path_); 504 GetNetworkState(service_path_);
505 DCHECK(vpn && vpn->type() == shill::kTypeVPN); 505 DCHECK(vpn && vpn->type() == shill::kTypeVPN);
506 } 506 }
507 layout_ = layout_utils::CreatePanelLayout(this); 507 layout_ = layout_utils::CreatePanelLayout(this);
508 LayoutDelegate* delegate = LayoutDelegate::Get(); 508 ChromeViewsLayoutDelegate* delegate = ChromeViewsLayoutDelegate::Get();
Peter Kasting 2017/03/30 00:49:04 Nit: For this and other files in this directory, u
kylix_rd 2017/03/30 19:34:07 Duh... I kind of went on auto-pilot and didn't loo
Peter Kasting 2017/03/30 19:40:02 Do you think it makes sense to suggest as a rule o
kylix_rd 2017/03/31 21:12:40 Yes, that makes sense. We just need to ensure that
Peter Kasting 2017/03/31 22:14:29 I think we're probably on the same page in general
509 509
510 // Observer any changes to the certificate list. 510 // Observer any changes to the certificate list.
511 CertLibrary::Get()->AddObserver(this); 511 CertLibrary::Get()->AddObserver(this);
512 512
513 views::ColumnSet* column_set = layout_->AddColumnSet(0); 513 views::ColumnSet* column_set = layout_->AddColumnSet(0);
514 // Label. 514 // Label.
515 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 1, 515 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 1,
516 views::GridLayout::USE_PREF, 0, 0); 516 views::GridLayout::USE_PREF, 0, 0);
517 column_set->AddPaddingColumn( 517 column_set->AddPaddingColumn(
518 0, delegate->GetMetric( 518 0, delegate->GetDistanceMetric(
519 LayoutDelegate::Metric::RELATED_CONTROL_HORIZONTAL_SPACING)); 519 ChromeDistanceMetric::RELATED_CONTROL_HORIZONTAL));
520 // Textfield, combobox. 520 // Textfield, combobox.
521 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, 521 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
522 views::GridLayout::USE_PREF, 0, 522 views::GridLayout::USE_PREF, 0,
523 ChildNetworkConfigView::kInputFieldMinWidth); 523 ChildNetworkConfigView::kInputFieldMinWidth);
524 column_set->AddPaddingColumn( 524 column_set->AddPaddingColumn(
525 0, delegate->GetMetric( 525 0, delegate->GetDistanceMetric(
526 LayoutDelegate::Metric::RELATED_CONTROL_HORIZONTAL_SPACING)); 526 ChromeDistanceMetric::RELATED_CONTROL_HORIZONTAL));
527 // Policy indicator. 527 // Policy indicator.
528 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, 0, 528 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, 0,
529 views::GridLayout::USE_PREF, 0, 0); 529 views::GridLayout::USE_PREF, 0, 0);
530 530
531 // Initialize members. 531 // Initialize members.
532 service_text_modified_ = false; 532 service_text_modified_ = false;
533 title_ = vpn ? IDS_OPTIONS_SETTINGS_JOIN_VPN : IDS_OPTIONS_SETTINGS_ADD_VPN; 533 title_ = vpn ? IDS_OPTIONS_SETTINGS_JOIN_VPN : IDS_OPTIONS_SETTINGS_ADD_VPN;
534 534
535 // By default enable all controls. 535 // By default enable all controls.
536 enable_psk_passphrase_ = true; 536 enable_psk_passphrase_ = true;
537 enable_user_cert_ = true; 537 enable_user_cert_ = true;
538 enable_server_ca_cert_ = true; 538 enable_server_ca_cert_ = true;
539 enable_otp_ = true; 539 enable_otp_ = true;
540 enable_group_name_ = true; 540 enable_group_name_ = true;
541 541
542 // Server label and input. 542 // Server label and input.
543 layout_->StartRow(0, 0); 543 layout_->StartRow(0, 0);
544 views::View* server_label = 544 views::View* server_label =
545 new views::Label(l10n_util::GetStringUTF16( 545 new views::Label(l10n_util::GetStringUTF16(
546 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_SERVER_HOSTNAME)); 546 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_SERVER_HOSTNAME));
547 layout_->AddView(server_label); 547 layout_->AddView(server_label);
548 server_textfield_ = new views::Textfield(); 548 server_textfield_ = new views::Textfield();
549 server_textfield_->set_controller(this); 549 server_textfield_->set_controller(this);
550 layout_->AddView(server_textfield_); 550 layout_->AddView(server_textfield_);
551 layout_->AddPaddingRow( 551 layout_->AddPaddingRow(0,
552 0, delegate->GetMetric( 552 delegate->GetDistanceMetric(
553 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 553 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
554 if (!service_path_.empty()) { 554 if (!service_path_.empty()) {
555 server_label->SetEnabled(false); 555 server_label->SetEnabled(false);
556 server_textfield_->SetEnabled(false); 556 server_textfield_->SetEnabled(false);
557 } 557 }
558 558
559 // Service label and name or input. 559 // Service label and name or input.
560 layout_->StartRow(0, 0); 560 layout_->StartRow(0, 0);
561 layout_->AddView(new views::Label(l10n_util::GetStringUTF16( 561 layout_->AddView(new views::Label(l10n_util::GetStringUTF16(
562 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_SERVICE_NAME))); 562 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_SERVICE_NAME)));
563 if (service_path_.empty()) { 563 if (service_path_.empty()) {
564 service_textfield_ = new views::Textfield(); 564 service_textfield_ = new views::Textfield();
565 service_textfield_->set_controller(this); 565 service_textfield_->set_controller(this);
566 layout_->AddView(service_textfield_); 566 layout_->AddView(service_textfield_);
567 service_text_ = NULL; 567 service_text_ = NULL;
568 } else { 568 } else {
569 service_text_ = new views::Label(); 569 service_text_ = new views::Label();
570 service_text_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 570 service_text_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
571 layout_->AddView(service_text_); 571 layout_->AddView(service_text_);
572 service_textfield_ = NULL; 572 service_textfield_ = NULL;
573 } 573 }
574 layout_->AddPaddingRow( 574 layout_->AddPaddingRow(0,
575 0, delegate->GetMetric( 575 delegate->GetDistanceMetric(
576 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 576 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
577 577
578 // Provider type label and select. 578 // Provider type label and select.
579 layout_->StartRow(0, 0); 579 layout_->StartRow(0, 0);
580 layout_->AddView(new views::Label(l10n_util::GetStringUTF16( 580 layout_->AddView(new views::Label(l10n_util::GetStringUTF16(
581 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_PROVIDER_TYPE))); 581 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_PROVIDER_TYPE)));
582 if (service_path_.empty()) { 582 if (service_path_.empty()) {
583 provider_type_combobox_model_.reset( 583 provider_type_combobox_model_.reset(
584 new internal::ProviderTypeComboboxModel); 584 new internal::ProviderTypeComboboxModel);
585 provider_type_combobox_ = new views::Combobox( 585 provider_type_combobox_ = new views::Combobox(
586 provider_type_combobox_model_.get()); 586 provider_type_combobox_model_.get());
587 provider_type_combobox_->set_listener(this); 587 provider_type_combobox_->set_listener(this);
588 layout_->AddView(provider_type_combobox_); 588 layout_->AddView(provider_type_combobox_);
589 provider_type_text_label_ = NULL; 589 provider_type_text_label_ = NULL;
590 } else { 590 } else {
591 provider_type_text_label_ = new views::Label(); 591 provider_type_text_label_ = new views::Label();
592 provider_type_text_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 592 provider_type_text_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
593 layout_->AddView(provider_type_text_label_); 593 layout_->AddView(provider_type_text_label_);
594 provider_type_combobox_ = NULL; 594 provider_type_combobox_ = NULL;
595 } 595 }
596 layout_->AddPaddingRow( 596 layout_->AddPaddingRow(0,
597 0, delegate->GetMetric( 597 delegate->GetDistanceMetric(
598 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 598 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
599 599
600 // PSK passphrase label, input and visible button. 600 // PSK passphrase label, input and visible button.
601 layout_->StartRow(0, 0); 601 layout_->StartRow(0, 0);
602 psk_passphrase_label_ = new views::Label(l10n_util::GetStringUTF16( 602 psk_passphrase_label_ = new views::Label(l10n_util::GetStringUTF16(
603 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_PSK_PASSPHRASE)); 603 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_PSK_PASSPHRASE));
604 layout_->AddView(psk_passphrase_label_); 604 layout_->AddView(psk_passphrase_label_);
605 psk_passphrase_textfield_ = new PassphraseTextfield(); 605 psk_passphrase_textfield_ = new PassphraseTextfield();
606 psk_passphrase_textfield_->set_controller(this); 606 psk_passphrase_textfield_->set_controller(this);
607 layout_->AddView(psk_passphrase_textfield_); 607 layout_->AddView(psk_passphrase_textfield_);
608 layout_->AddView( 608 layout_->AddView(
609 new ControlledSettingIndicatorView(psk_passphrase_ui_data_)); 609 new ControlledSettingIndicatorView(psk_passphrase_ui_data_));
610 layout_->AddPaddingRow( 610 layout_->AddPaddingRow(0,
611 0, delegate->GetMetric( 611 delegate->GetDistanceMetric(
612 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 612 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
613 613
614 // Server CA certificate 614 // Server CA certificate
615 if (service_path_.empty()) { 615 if (service_path_.empty()) {
616 layout_->StartRow(0, 0); 616 layout_->StartRow(0, 0);
617 server_ca_cert_label_ = new views::Label(l10n_util::GetStringUTF16( 617 server_ca_cert_label_ = new views::Label(l10n_util::GetStringUTF16(
618 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_CERT_SERVER_CA)); 618 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_CERT_SERVER_CA));
619 layout_->AddView(server_ca_cert_label_); 619 layout_->AddView(server_ca_cert_label_);
620 server_ca_cert_combobox_model_.reset( 620 server_ca_cert_combobox_model_.reset(
621 new internal::VpnServerCACertComboboxModel()); 621 new internal::VpnServerCACertComboboxModel());
622 server_ca_cert_combobox_ = new views::Combobox( 622 server_ca_cert_combobox_ = new views::Combobox(
623 server_ca_cert_combobox_model_.get()); 623 server_ca_cert_combobox_model_.get());
624 layout_->AddView(server_ca_cert_combobox_); 624 layout_->AddView(server_ca_cert_combobox_);
625 layout_->AddView(new ControlledSettingIndicatorView(ca_cert_ui_data_)); 625 layout_->AddView(new ControlledSettingIndicatorView(ca_cert_ui_data_));
626 layout_->AddPaddingRow( 626 layout_->AddPaddingRow(0,
627 0, delegate->GetMetric( 627 delegate->GetDistanceMetric(
628 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 628 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
629 } else { 629 } else {
630 server_ca_cert_label_ = NULL; 630 server_ca_cert_label_ = NULL;
631 server_ca_cert_combobox_ = NULL; 631 server_ca_cert_combobox_ = NULL;
632 } 632 }
633 633
634 // User certificate label and input. 634 // User certificate label and input.
635 layout_->StartRow(0, 0); 635 layout_->StartRow(0, 0);
636 user_cert_label_ = new views::Label(l10n_util::GetStringUTF16( 636 user_cert_label_ = new views::Label(l10n_util::GetStringUTF16(
637 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USER_CERT)); 637 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USER_CERT));
638 layout_->AddView(user_cert_label_); 638 layout_->AddView(user_cert_label_);
639 user_cert_combobox_model_.reset( 639 user_cert_combobox_model_.reset(
640 new internal::VpnUserCertComboboxModel()); 640 new internal::VpnUserCertComboboxModel());
641 user_cert_combobox_ = new views::Combobox(user_cert_combobox_model_.get()); 641 user_cert_combobox_ = new views::Combobox(user_cert_combobox_model_.get());
642 user_cert_combobox_->set_listener(this); 642 user_cert_combobox_->set_listener(this);
643 layout_->AddView(user_cert_combobox_); 643 layout_->AddView(user_cert_combobox_);
644 layout_->AddView(new ControlledSettingIndicatorView(user_cert_ui_data_)); 644 layout_->AddView(new ControlledSettingIndicatorView(user_cert_ui_data_));
645 layout_->AddPaddingRow( 645 layout_->AddPaddingRow(0,
646 0, delegate->GetMetric( 646 delegate->GetDistanceMetric(
647 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 647 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
648 648
649 // Username label and input. 649 // Username label and input.
650 layout_->StartRow(0, 0); 650 layout_->StartRow(0, 0);
651 layout_->AddView(new views::Label(l10n_util::GetStringUTF16( 651 layout_->AddView(new views::Label(l10n_util::GetStringUTF16(
652 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USERNAME))); 652 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USERNAME)));
653 username_textfield_ = new views::Textfield(); 653 username_textfield_ = new views::Textfield();
654 username_textfield_->set_controller(this); 654 username_textfield_->set_controller(this);
655 username_textfield_->SetEnabled(username_ui_data_.IsEditable()); 655 username_textfield_->SetEnabled(username_ui_data_.IsEditable());
656 layout_->AddView(username_textfield_); 656 layout_->AddView(username_textfield_);
657 layout_->AddView(new ControlledSettingIndicatorView(username_ui_data_)); 657 layout_->AddView(new ControlledSettingIndicatorView(username_ui_data_));
658 layout_->AddPaddingRow( 658 layout_->AddPaddingRow(0,
659 0, delegate->GetMetric( 659 delegate->GetDistanceMetric(
660 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 660 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
661 661
662 // User passphrase label, input and visble button. 662 // User passphrase label, input and visble button.
663 layout_->StartRow(0, 0); 663 layout_->StartRow(0, 0);
664 layout_->AddView(new views::Label(l10n_util::GetStringUTF16( 664 layout_->AddView(new views::Label(l10n_util::GetStringUTF16(
665 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USER_PASSPHRASE))); 665 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_USER_PASSPHRASE)));
666 user_passphrase_textfield_ = new PassphraseTextfield(); 666 user_passphrase_textfield_ = new PassphraseTextfield();
667 user_passphrase_textfield_->set_controller(this); 667 user_passphrase_textfield_->set_controller(this);
668 user_passphrase_textfield_->SetEnabled(user_passphrase_ui_data_.IsEditable()); 668 user_passphrase_textfield_->SetEnabled(user_passphrase_ui_data_.IsEditable());
669 layout_->AddView(user_passphrase_textfield_); 669 layout_->AddView(user_passphrase_textfield_);
670 layout_->AddView( 670 layout_->AddView(
671 new ControlledSettingIndicatorView(user_passphrase_ui_data_)); 671 new ControlledSettingIndicatorView(user_passphrase_ui_data_));
672 layout_->AddPaddingRow( 672 layout_->AddPaddingRow(0,
673 0, delegate->GetMetric( 673 delegate->GetDistanceMetric(
674 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 674 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
675 675
676 // OTP label and input. 676 // OTP label and input.
677 layout_->StartRow(0, 0); 677 layout_->StartRow(0, 0);
678 otp_label_ = new views::Label(l10n_util::GetStringUTF16( 678 otp_label_ = new views::Label(l10n_util::GetStringUTF16(
679 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_OTP)); 679 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_OTP));
680 layout_->AddView(otp_label_); 680 layout_->AddView(otp_label_);
681 otp_textfield_ = new views::Textfield(); 681 otp_textfield_ = new views::Textfield();
682 otp_textfield_->set_controller(this); 682 otp_textfield_->set_controller(this);
683 layout_->AddView(otp_textfield_); 683 layout_->AddView(otp_textfield_);
684 layout_->AddPaddingRow( 684 layout_->AddPaddingRow(0,
685 0, delegate->GetMetric( 685 delegate->GetDistanceMetric(
686 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 686 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
687 687
688 // Group Name label and input. 688 // Group Name label and input.
689 layout_->StartRow(0, 0); 689 layout_->StartRow(0, 0);
690 group_name_label_ = new views::Label(l10n_util::GetStringUTF16( 690 group_name_label_ = new views::Label(l10n_util::GetStringUTF16(
691 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_GROUP_NAME)); 691 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_VPN_GROUP_NAME));
692 layout_->AddView(group_name_label_); 692 layout_->AddView(group_name_label_);
693 group_name_textfield_ = 693 group_name_textfield_ =
694 new views::Textfield(); 694 new views::Textfield();
695 group_name_textfield_->set_controller(this); 695 group_name_textfield_->set_controller(this);
696 layout_->AddView(group_name_textfield_); 696 layout_->AddView(group_name_textfield_);
697 layout_->AddView(new ControlledSettingIndicatorView(group_name_ui_data_)); 697 layout_->AddView(new ControlledSettingIndicatorView(group_name_ui_data_));
698 layout_->AddPaddingRow( 698 layout_->AddPaddingRow(0,
699 0, delegate->GetMetric( 699 delegate->GetDistanceMetric(
700 LayoutDelegate::Metric::RELATED_CONTROL_VERTICAL_SPACING)); 700 ChromeDistanceMetric::RELATED_CONTROL_VERTICAL));
701 701
702 // Save credentials 702 // Save credentials
703 layout_->StartRow(0, 0); 703 layout_->StartRow(0, 0);
704 save_credentials_checkbox_ = new views::Checkbox( 704 save_credentials_checkbox_ = new views::Checkbox(
705 l10n_util::GetStringUTF16( 705 l10n_util::GetStringUTF16(
706 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SAVE_CREDENTIALS)); 706 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SAVE_CREDENTIALS));
707 save_credentials_checkbox_->SetEnabled( 707 save_credentials_checkbox_->SetEnabled(
708 save_credentials_ui_data_.IsEditable()); 708 save_credentials_ui_data_.IsEditable());
709 layout_->SkipColumns(1); 709 layout_->SkipColumns(1);
710 layout_->AddView(save_credentials_checkbox_); 710 layout_->AddView(save_credentials_checkbox_);
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 property_ui_data->ParseOncProperty( 1094 property_ui_data->ParseOncProperty(
1095 onc_source, 1095 onc_source,
1096 onc, 1096 onc,
1097 base::StringPrintf("%s.%s.%s", 1097 base::StringPrintf("%s.%s.%s",
1098 ::onc::network_config::kVPN, 1098 ::onc::network_config::kVPN,
1099 dict_key.c_str(), 1099 dict_key.c_str(),
1100 key.c_str())); 1100 key.c_str()));
1101 } 1101 }
1102 1102
1103 } // namespace chromeos 1103 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698