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

Side by Side Diff: net/disk_cache/simple/simple_index.cc

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/simple/simple_index_file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "net/disk_cache/simple/simple_index.h" 5 #include "net/disk_cache/simple/simple_index.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 start - last_write_to_disk_); 463 start - last_write_to_disk_);
464 } else { 464 } else {
465 SIMPLE_CACHE_UMA(MEDIUM_TIMES, 465 SIMPLE_CACHE_UMA(MEDIUM_TIMES,
466 "IndexWriteInterval.Foreground", cache_type_, 466 "IndexWriteInterval.Foreground", cache_type_,
467 start - last_write_to_disk_); 467 start - last_write_to_disk_);
468 } 468 }
469 } 469 }
470 last_write_to_disk_ = start; 470 last_write_to_disk_ = start;
471 471
472 index_file_->WriteToDisk(entries_set_, cache_size_, 472 index_file_->WriteToDisk(entries_set_, cache_size_,
473 start, app_on_background_); 473 start, app_on_background_, base::Closure());
474 } 474 }
475 475
476 } // namespace disk_cache 476 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/simple/simple_index_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698