| OLD | NEW |
| 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/imageburner/burn_controller.h" | 5 #include "chrome/browser/chromeos/imageburner/burn_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/chromeos/imageburner/burn_manager.h" | 10 #include "chrome/browser/chromeos/imageburner/burn_manager.h" |
| 11 #include "chromeos/network/network_state_handler.h" | 11 #include "chromeos/network/network_state_handler.h" |
| 12 #include "grit/generated_resources.h" | |
| 13 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 14 | 13 |
| 15 namespace chromeos { | 14 namespace chromeos { |
| 16 namespace imageburner { | 15 namespace imageburner { |
| 17 | 16 |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 // 3.9GB. It is less than 4GB because true device size ussually varies a little. | 19 // 3.9GB. It is less than 4GB because true device size ussually varies a little. |
| 21 const uint64 kMinDeviceSize = static_cast<uint64>(3.9 * 1000 * 1000 * 1000); | 20 const uint64 kMinDeviceSize = static_cast<uint64>(3.9 * 1000 * 1000 * 1000); |
| 22 | 21 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 172 |
| 174 // static | 173 // static |
| 175 BurnController* BurnController::CreateBurnController( | 174 BurnController* BurnController::CreateBurnController( |
| 176 content::WebContents* web_contents, | 175 content::WebContents* web_contents, |
| 177 Delegate* delegate) { | 176 Delegate* delegate) { |
| 178 return new BurnControllerImpl(delegate); | 177 return new BurnControllerImpl(delegate); |
| 179 } | 178 } |
| 180 | 179 |
| 181 } // namespace imageburner | 180 } // namespace imageburner |
| 182 } // namespace chromeos | 181 } // namespace chromeos |
| OLD | NEW |