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

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

Issue 289383004: Merge FavoriteState into NetworkState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void ProfileEntryDeletedCallback(const std::string& profile_path, 167 void ProfileEntryDeletedCallback(const std::string& profile_path,
168 const std::string& entry) { 168 const std::string& entry) {
169 NET_LOG_DEBUG("Profile Entry Deleted", base::StringPrintf( 169 NET_LOG_DEBUG("Profile Entry Deleted", base::StringPrintf(
170 "%s: %s", profile_path.c_str(), entry.c_str())); 170 "%s: %s", profile_path.c_str(), entry.c_str()));
171 profile_delete_entries_.erase(profile_path); 171 profile_delete_entries_.erase(profile_path);
172 if (!profile_delete_entries_.empty()) 172 if (!profile_delete_entries_.empty())
173 return; 173 return;
174 // Run the callback if this is the last pending deletion. 174 // Run the callback if this is the last pending deletion.
175 if (!callback_.is_null()) 175 if (!callback_.is_null())
176 callback_.Run(); 176 callback_.Run();
177 // Request NetworkStateHandler manager update to update ServiceCompleteList.
178 owner_->network_state_handler_->UpdateManagerProperties();
179 owner_->ProfileEntryDeleterCompleted(service_path_); // Deletes this. 177 owner_->ProfileEntryDeleterCompleted(service_path_); // Deletes this.
180 } 178 }
181 179
182 void ShillErrorCallback(const std::string& profile_path, 180 void ShillErrorCallback(const std::string& profile_path,
183 const std::string& entry, 181 const std::string& entry,
184 const std::string& dbus_error_name, 182 const std::string& dbus_error_name,
185 const std::string& dbus_error_message) { 183 const std::string& dbus_error_message) {
186 // Any Shill Error triggers a failure / error. 184 // Any Shill Error triggers a failure / error.
187 network_handler::ShillErrorCallbackFunction( 185 network_handler::ShillErrorCallbackFunction(
188 "GetLoadableProfileEntries Failed", profile_path, error_callback_, 186 "GetLoadableProfileEntries Failed", profile_path, error_callback_,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 428
431 // static 429 // static
432 NetworkConfigurationHandler* NetworkConfigurationHandler::InitializeForTest( 430 NetworkConfigurationHandler* NetworkConfigurationHandler::InitializeForTest(
433 NetworkStateHandler* network_state_handler) { 431 NetworkStateHandler* network_state_handler) {
434 NetworkConfigurationHandler* handler = new NetworkConfigurationHandler(); 432 NetworkConfigurationHandler* handler = new NetworkConfigurationHandler();
435 handler->Init(network_state_handler); 433 handler->Init(network_state_handler);
436 return handler; 434 return handler;
437 } 435 }
438 436
439 } // namespace chromeos 437 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_change_notifier_chromeos_unittest.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698