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

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

Issue 11975015: This adds a private extension API to use for simple networking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Converting to ONC Created 7 years, 11 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 | Annotate | Revision Log
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 "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 void VPNConfigView::ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data, 907 void VPNConfigView::ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data,
908 Network* network, 908 Network* network,
909 const std::string& dict_key, 909 const std::string& dict_key,
910 const std::string& key) { 910 const std::string& key) {
911 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary(); 911 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary();
912 const base::DictionaryValue* onc = 912 const base::DictionaryValue* onc =
913 network_library->FindOncForNetwork(network->unique_id()); 913 network_library->FindOncForNetwork(network->unique_id());
914 914
915 property_ui_data->ParseOncProperty( 915 property_ui_data->ParseOncProperty(
916 network->ui_data(), onc, 916 network->ui_data(), onc,
917 base::StringPrintf("%s.%s.%s", onc::kVPN, dict_key.c_str(), key.c_str())); 917 base::StringPrintf("%s.%s.%s",
918 onc::network_config::kVPN,
919 dict_key.c_str(),
920 key.c_str()));
918 } 921 }
919 922
920 } // namespace chromeos 923 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698