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

Unified Diff: net/quic/quic_in_memory_cache.cc

Issue 361083002: Small cleanups to ported QuicServer and dependencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/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);

Powered by Google App Engine
This is Rietveld 408576698