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

Unified Diff: chromeos/chromeos_paths.cc

Issue 2343983004: Add PPDProvider barebones implementation and associated cache skeleton. (Closed)
Patch Set: Initial PPDProvider/PPDCache implementation. Also, add associated unittests. This doesn't plumb th… Created 4 years, 2 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: chromeos/chromeos_paths.cc
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc
index 58c4f20a41fff39836ad3e8531a390345b8e2e3b..0cf6abda0762157d65efec03bfb2cc516749406a 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -56,6 +56,9 @@ const base::FilePath::CharType kDeviceColorProfileDirectory[] =
const base::FilePath::CharType kDeviceExtensionLocalCache[] =
FILE_PATH_LITERAL("/var/cache/external_cache");
+const base::FilePath::CharType kPrinterDriversCacheDir[] =
+ FILE_PATH_LITERAL("/var/cache/print_drivers");
+
bool PathProvider(int key, base::FilePath* result) {
switch (key) {
case FILE_DEFAULT_APP_ORDER:
@@ -97,6 +100,9 @@ bool PathProvider(int key, base::FilePath* result) {
case DIR_DEVICE_EXTENSION_LOCAL_CACHE:
*result = base::FilePath(kDeviceExtensionLocalCache);
break;
+ case DIR_PRINTER_DRIVERS_CACHE:
+ *result = base::FilePath(kPrinterDriversCacheDir);
+ break;
default:
return false;
}

Powered by Google App Engine
This is Rietveld 408576698