Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_impl.cc

Issue 1459033002: Replace (most) occurrences of mojo::Array<T>() with nullptr. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/files/file_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « services/files/file_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698