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

Unified Diff: net/disk_cache/simple/simple_index_file.cc

Issue 1340683002: Remove base's implicit_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implicitcast: . Created 5 years, 3 months 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
Index: net/disk_cache/simple/simple_index_file.cc
diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc
index c013084041f301cbd5ee378eb0642436d09ba910..6d9cdb1bce1d35f1273d2ada484cd2e075b6f360 100644
--- a/net/disk_cache/simple/simple_index_file.cc
+++ b/net/disk_cache/simple/simple_index_file.cc
@@ -77,7 +77,7 @@ bool WritePickleFile(base::Pickle* pickle, const base::FilePath& file_name) {
int bytes_written =
file.Write(0, static_cast<const char*>(pickle->data()), pickle->size());
- if (bytes_written != implicit_cast<int>(pickle->size())) {
+ if (bytes_written != static_cast<int>(pickle->size())) {
vmpstr 2015/09/11 21:31:16 checked_cast?
danakj 2015/09/11 21:33:30 Yep
simple_util::SimpleCacheDeleteFile(file_name);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698