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

Unified Diff: chromeos/printing/ppd_cache.h

Issue 2516513002: Lazily create PPDCache directory on first store. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc ('k') | chromeos/printing/ppd_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/ppd_cache.h
diff --git a/chromeos/printing/ppd_cache.h b/chromeos/printing/ppd_cache.h
index d44eeb5372d1dcb0301b85d3f45986f81fbd1176..809d3c9d1b1b05bb34e41369d10fb04735899fa7 100644
--- a/chromeos/printing/ppd_cache.h
+++ b/chromeos/printing/ppd_cache.h
@@ -46,7 +46,9 @@ class CHROMEOS_EXPORT PpdCache {
size_t max_available_list_cached_size = 10 * 1024 * 1024;
};
- // Create and return a Ppdcache that uses cache_dir to store state.
+ // Create and return a Ppdcache that uses cache_dir to store state. If
+ // cache_base_dir does not exist, it will be lazily created the first time the
+ // cache needs to store state.
static std::unique_ptr<PpdCache> Create(const base::FilePath& cache_base_dir,
const Options& options = Options());
virtual ~PpdCache() {}
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc ('k') | chromeos/printing/ppd_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698