| Index: net/quic/quic_in_memory_cache.cc
|
| diff --git a/net/quic/quic_in_memory_cache.cc b/net/quic/quic_in_memory_cache.cc
|
| index 58c6e90f89cd6c1a77f6feb6bc299b9ed8a842ba..48c45285e940c57b34d78067b3f2a429cf2c19ef 100644
|
| --- a/net/quic/quic_in_memory_cache.cc
|
| +++ b/net/quic/quic_in_memory_cache.cc
|
| @@ -21,7 +21,7 @@ using std::string;
|
|
|
| namespace net {
|
|
|
| -FilePath::StringType g_quic_in_memory_cache_dir = FILE_PATH_LITERAL("");
|
| +FilePath::StringType* g_quic_in_memory_cache_dir = NULL;
|
|
|
| QuicInMemoryCache::Response::Response() : response_type_(REGULAR_RESPONSE) {
|
| }
|
| @@ -98,14 +98,14 @@ void QuicInMemoryCache::ResetForTests() {
|
|
|
| void QuicInMemoryCache::Initialize() {
|
| // If there's no defined cache dir, we have no initialization to do.
|
| - if (g_quic_in_memory_cache_dir.size() == 0) {
|
| + if (g_quic_in_memory_cache_dir == NULL) {
|
| VLOG(1) << "No cache directory found. Skipping initialization.";
|
| return;
|
| }
|
| VLOG(1) << "Attempting to initialize QuicInMemoryCache from directory: "
|
| - << g_quic_in_memory_cache_dir;
|
| + << *g_quic_in_memory_cache_dir;
|
|
|
| - FilePath directory(g_quic_in_memory_cache_dir);
|
| + FilePath directory(*g_quic_in_memory_cache_dir);
|
| base::FileEnumerator file_list(directory,
|
| true,
|
| base::FileEnumerator::FILES);
|
|
|