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

Unified Diff: chrome/browser/chromeos/imageburner/burn_manager.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/imageburner/burn_manager.cc
diff --git a/chrome/browser/chromeos/imageburner/burn_manager.cc b/chrome/browser/chromeos/imageburner/burn_manager.cc
index 991d7414c6fdb1d0c92cec0b7370ac3413c5b3c4..88319647012e7c340aa1508779fc321431c35d37 100644
--- a/chrome/browser/chromeos/imageburner/burn_manager.cc
+++ b/chrome/browser/chromeos/imageburner/burn_manager.cc
@@ -226,7 +226,7 @@ BurnManager::BurnManager(
url_request_context_getter_(context_getter),
bytes_image_download_progress_last_reported_(0),
weak_ptr_factory_(this) {
- NetworkStateHandler::Get()->AddObserver(this);
+ NetworkHandler::Get()->network_state_handler()->AddObserver(this);
base::WeakPtr<BurnManager> weak_ptr(weak_ptr_factory_.GetWeakPtr());
device_handler_.SetCallbacks(
base::Bind(&BurnManager::NotifyDeviceAdded, weak_ptr),
@@ -242,7 +242,7 @@ BurnManager::~BurnManager() {
if (image_dir_created_) {
file_util::Delete(image_dir_, true);
}
- NetworkStateHandler::Get()->RemoveObserver(this);
+ NetworkHandler::Get()->network_state_handler()->RemoveObserver(this);
DBusThreadManager::Get()->GetImageBurnerClient()->ResetEventHandlers();
}
« no previous file with comments | « chrome/browser/chromeos/imageburner/burn_controller.cc ('k') | chrome/browser/chromeos/net/connectivity_state_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698