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

Side by Side Diff: chromeos/network/network_configuration_handler.cc

Issue 260083007: Replace chrome://network implementation with networkConfig API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Address feedback Created 6 years, 6 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chromeos/network/network_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chromeos/network/network_configuration_handler.h" 5 #include "chromeos/network/network_configuration_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 DISALLOW_COPY_AND_ASSIGN(ProfileEntryDeleter); 203 DISALLOW_COPY_AND_ASSIGN(ProfileEntryDeleter);
204 }; 204 };
205 205
206 // NetworkConfigurationHandler 206 // NetworkConfigurationHandler
207 207
208 void NetworkConfigurationHandler::GetProperties( 208 void NetworkConfigurationHandler::GetProperties(
209 const std::string& service_path, 209 const std::string& service_path,
210 const network_handler::DictionaryResultCallback& callback, 210 const network_handler::DictionaryResultCallback& callback,
211 const network_handler::ErrorCallback& error_callback) const { 211 const network_handler::ErrorCallback& error_callback) const {
212 NET_LOG_USER("GetProperties", service_path);
212 DBusThreadManager::Get()->GetShillServiceClient()->GetProperties( 213 DBusThreadManager::Get()->GetShillServiceClient()->GetProperties(
213 dbus::ObjectPath(service_path), 214 dbus::ObjectPath(service_path),
214 base::Bind(&GetPropertiesCallback, 215 base::Bind(&GetPropertiesCallback,
215 callback, error_callback, service_path)); 216 callback, error_callback, service_path));
216 } 217 }
217 218
218 void NetworkConfigurationHandler::SetProperties( 219 void NetworkConfigurationHandler::SetProperties(
219 const std::string& service_path, 220 const std::string& service_path,
220 const base::DictionaryValue& properties, 221 const base::DictionaryValue& properties,
221 const base::Closure& callback, 222 const base::Closure& callback,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 430
430 // static 431 // static
431 NetworkConfigurationHandler* NetworkConfigurationHandler::InitializeForTest( 432 NetworkConfigurationHandler* NetworkConfigurationHandler::InitializeForTest(
432 NetworkStateHandler* network_state_handler) { 433 NetworkStateHandler* network_state_handler) {
433 NetworkConfigurationHandler* handler = new NetworkConfigurationHandler(); 434 NetworkConfigurationHandler* handler = new NetworkConfigurationHandler();
434 handler->Init(network_state_handler); 435 handler->Init(network_state_handler);
435 return handler; 436 return handler;
436 } 437 }
437 438
438 } // namespace chromeos 439 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chromeos/network/network_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698