Chromium Code Reviews| 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 is used in jni.h is overriden by a macro in | |
| 6 // zlib/mozzconf.h and we get compile errors. | |
| 7 // TODO(moshayedi): crbug.com/554199. | |
| 8 #if defined(ANDROID) | |
| 9 #include <jni.h> | |
|
mfomitchev
2015/11/10 21:27:28
There were some suggestions in https://codereview.
Hadi
2015/11/12 16:33:36
Fixing this in https://codereview.chromium.org/143
| |
| 10 #endif | |
| 11 | |
| 5 #include "base/logging.h" | 12 #include "base/logging.h" |
| 6 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 13 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 7 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 14 #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" | 15 #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 " | 16 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h " |
| 10 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
| 13 | 20 |
| 14 namespace image_writer_api = extensions::api::image_writer_private; | 21 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( | 188 image_writer_api::ListRemovableStorageDevices::Results::Create( |
| 182 device_list.get()->data); | 189 device_list.get()->data); |
| 183 SendResponse(true); | 190 SendResponse(true); |
| 184 } else { | 191 } else { |
| 185 error_ = image_writer::error::kDeviceListError; | 192 error_ = image_writer::error::kDeviceListError; |
| 186 SendResponse(false); | 193 SendResponse(false); |
| 187 } | 194 } |
| 188 } | 195 } |
| 189 | 196 |
| 190 } // namespace extensions | 197 } // namespace extensions |
| OLD | NEW |