| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/webui/chromeos/imageburner/imageburner_utils.h" | 5 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "chrome/browser/download/download_types.h" | |
| 11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 13 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
| 13 #include "content/browser/download/download_types.h" |
| 14 | 14 |
| 15 namespace imageburner { | 15 namespace imageburner { |
| 16 | 16 |
| 17 static const char kConfigFileUrl[] = | 17 static const char kConfigFileUrl[] = |
| 18 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf"; | 18 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf"; |
| 19 static const char kTempImageFolderName[] = "chromeos_image"; | 19 static const char kTempImageFolderName[] = "chromeos_image"; |
| 20 static const char kConfigFileName[] = "recovery.conf"; | 20 static const char kConfigFileName[] = "recovery.conf"; |
| 21 | 21 |
| 22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
| 23 // | 23 // |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 current_listener != listener_range.second; | 455 current_listener != listener_range.second; |
| 456 ++current_listener) { | 456 ++current_listener) { |
| 457 if (current_listener->second) | 457 if (current_listener->second) |
| 458 current_listener->second->OnBurnDownloadStarted(success); | 458 current_listener->second->OnBurnDownloadStarted(success); |
| 459 } | 459 } |
| 460 listeners_.erase(listener_range.first, listener_range.second); | 460 listeners_.erase(listener_range.first, listener_range.second); |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace imageburner. | 463 } // namespace imageburner. |
| 464 | 464 |
| OLD | NEW |