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

Side by Side Diff: chrome/browser/chromeos/cros/network_library_impl_cros.cc

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos_unittests Created 7 years, 7 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/cros/network_library_impl_cros.h" 5 #include "chrome/browser/chromeos/cros/network_library_impl_cros.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/json/json_writer.h" // for debug output only. 9 #include "base/json/json_writer.h" // for debug output only.
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 1348
1349 // Notify that the network changed, so that the DNS cache can be 1349 // Notify that the network changed, so that the DNS cache can be
1350 // cleared properly. 1350 // cleared properly.
1351 NotifyNetworkChanged(network); 1351 NotifyNetworkChanged(network);
1352 } 1352 }
1353 1353
1354 if (!something_changed) 1354 if (!something_changed)
1355 return; 1355 return;
1356 1356
1357 // Ensure NetworkStateHandler properties are up-to-date. 1357 // Ensure NetworkStateHandler properties are up-to-date.
1358 if (NetworkStateHandler::IsInitialized()) 1358 if (NetworkHandler::IsInitialized()) {
1359 NetworkStateHandler::Get()->RequestUpdateForNetwork(service_path); 1359 NetworkHandler::Get()->network_state_handler()->RequestUpdateForNetwork(
1360 service_path);
1361 }
1360 1362
1361 // Attempt to refresh its IP parameters, so that the changes to the service 1363 // Attempt to refresh its IP parameters, so that the changes to the service
1362 // properties can take effect. 1364 // properties can take effect.
1363 if (network->connecting_or_connected()) 1365 if (network->connecting_or_connected())
1364 RefreshIPConfig(network); 1366 RefreshIPConfig(network);
1365 } 1367 }
1366 1368
1367 // static 1369 // static
1368 bool NetworkLibraryImplCros::AreProfilePathsEqual(const NetworkProfile& a, 1370 bool NetworkLibraryImplCros::AreProfilePathsEqual(const NetworkProfile& a,
1369 const NetworkProfile& b) { 1371 const NetworkProfile& b) {
1370 return a.path == b.path; 1372 return a.path == b.path;
1371 } 1373 }
1372 1374
1373 } // namespace chromeos 1375 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698