OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 6 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
7 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 7 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
8 #include "chrome/browser/extensions/api/image_writer_private/image_writer_privat
e_api.h" | 8 #include "chrome/browser/extensions/api/image_writer_private/image_writer_privat
e_api.h" |
9 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 9 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 10 #include "chrome/browser/profiles/profile.h" |
10 | 11 |
11 namespace image_writer_api = extensions::api::image_writer_private; | 12 namespace image_writer_api = extensions::api::image_writer_private; |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 ImageWriterPrivateWriteFromUrlFunction:: | 16 ImageWriterPrivateWriteFromUrlFunction:: |
16 ImageWriterPrivateWriteFromUrlFunction() { | 17 ImageWriterPrivateWriteFromUrlFunction() { |
17 } | 18 } |
18 | 19 |
19 ImageWriterPrivateWriteFromUrlFunction:: | 20 ImageWriterPrivateWriteFromUrlFunction:: |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 image_writer_api::ListRemovableStorageDevices::Results::Create( | 182 image_writer_api::ListRemovableStorageDevices::Results::Create( |
182 device_list.get()->data); | 183 device_list.get()->data); |
183 SendResponse(true); | 184 SendResponse(true); |
184 } else { | 185 } else { |
185 error_ = image_writer::error::kDeviceListError; | 186 error_ = image_writer::error::kDeviceListError; |
186 SendResponse(false); | 187 SendResponse(false); |
187 } | 188 } |
188 } | 189 } |
189 | 190 |
190 } // namespace extensions | 191 } // namespace extensions |
OLD | NEW |