Index: services/url_response_disk_cache/url_response_disk_cache_impl.cc |
diff --git a/services/url_response_disk_cache/url_response_disk_cache_impl.cc b/services/url_response_disk_cache/url_response_disk_cache_impl.cc |
index 8ec138b5703bb3897576a7c56e6e3f1defa7b84a..7cbca7c2dc1954a8ec7301b714e3428012cfb726 100644 |
--- a/services/url_response_disk_cache/url_response_disk_cache_impl.cc |
+++ b/services/url_response_disk_cache/url_response_disk_cache_impl.cc |
@@ -81,7 +81,7 @@ void ClearTrashDir(scoped_refptr<base::TaskRunner> task_runner, |
Array<uint8_t> PathToArray(const base::FilePath& path) { |
if (path.empty()) |
- return Array<uint8_t>(); |
+ return nullptr; |
const std::string& string = path.value(); |
auto result = Array<uint8_t>::New(string.size()); |
memcpy(&result.front(), string.data(), string.size()); |
@@ -387,7 +387,7 @@ void URLResponseDiskCacheImpl::Get(const String& url, |
return; |
} |
if (IsInvalidated(entry) || !IsCacheEntryValid(entry)) { |
- callback.Run(URLResponsePtr(), Array<uint8_t>(), Array<uint8_t>()); |
+ callback.Run(URLResponsePtr(), nullptr, nullptr); |
return; |
} |
callback.Run(entry->response.Pass(), |