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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc

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 | « no previous file | chromeos/printing/ppd_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
index 61b69a2971bb6aa0b1b72187db90807f2d6e22d0..d21d63b191fb282dd5da2d36fa616a3fd9db40e0 100644
--- a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
@@ -82,11 +82,6 @@ CupsPrintersHandler::CupsPrintersHandler(content::WebUI* webui)
weak_factory_(this) {
base::FilePath ppd_cache_path =
profile_->GetPath().Append(FILE_PATH_LITERAL("PPDCache"));
- if (!base::PathExists(ppd_cache_path) &&
- !base::CreateDirectory(ppd_cache_path)) {
- LOG(ERROR) << "Failed to create ppd cache directory "
- << ppd_cache_path.MaybeAsASCII();
- }
ppd_provider_ = chromeos::printing::PpdProvider::Create(
google_apis::GetAPIKey(), g_browser_process->system_request_context(),
content::BrowserThread::GetTaskRunnerForThread(
« no previous file with comments | « no previous file | chromeos/printing/ppd_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698