| Index: net/disk_cache/simple/simple_synchronous_entry.cc
|
| diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc
|
| index 864c05ac8ac7263cb69726376b0c4827f8b96004..e929b0657b599e27cd9c65f00578a78aaa48ee13 100644
|
| --- a/net/disk_cache/simple/simple_synchronous_entry.cc
|
| +++ b/net/disk_cache/simple/simple_synchronous_entry.cc
|
| @@ -9,6 +9,7 @@
|
| #include <functional>
|
| #include <limits>
|
|
|
| +#include "base/command_line.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/files/file_util.h"
|
| #include "base/hash.h"
|
| @@ -25,6 +26,8 @@
|
| #include "net/disk_cache/simple/simple_util.h"
|
| #include "third_party/zlib/zlib.h"
|
|
|
| +#include <unistd.h>
|
| +
|
| using base::File;
|
| using base::FilePath;
|
| using base::Time;
|
| @@ -266,6 +269,10 @@ void SimpleSynchronousEntry::CreateEntry(
|
| return;
|
| }
|
| out_results->sync_entry = sync_entry;
|
| + if (base::CommandLine::ForCurrentProcess()-> HasSwitch(
|
| + "simple-cache-slower-creates")) {
|
| + usleep(20 * 1000);
|
| + }
|
| }
|
|
|
| // static
|
|
|