| 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 // hack, otherwise Byte which used in jni.h is overrided by a macro |
| 6 #if defined(OS_ANDROID) |
| 7 #include <jni.h> |
| 8 #endif |
| 9 |
| 5 #include "base/logging.h" | 10 #include "base/logging.h" |
| 6 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 11 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 7 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 12 #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" | 13 #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
" | 14 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 10 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
| 13 | 18 |
| 14 namespace image_writer_api = extensions::api::image_writer_private; | 19 namespace image_writer_api = extensions::api::image_writer_private; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 image_writer_api::ListRemovableStorageDevices::Results::Create( | 186 image_writer_api::ListRemovableStorageDevices::Results::Create( |
| 182 device_list.get()->data); | 187 device_list.get()->data); |
| 183 SendResponse(true); | 188 SendResponse(true); |
| 184 } else { | 189 } else { |
| 185 error_ = image_writer::error::kDeviceListError; | 190 error_ = image_writer::error::kDeviceListError; |
| 186 SendResponse(false); | 191 SendResponse(false); |
| 187 } | 192 } |
| 188 } | 193 } |
| 189 | 194 |
| 190 } // namespace extensions | 195 } // namespace extensions |
| OLD | NEW |