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

Unified Diff: base/path_service.cc

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add SavePageTest.SavedFolder4 and DownloadTest.DownloadedFolder2 Created 9 years, 7 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: base/path_service.cc
diff --git a/base/path_service.cc b/base/path_service.cc
index e72ae7deff9af69156ab2ed994de7431009ca5d8..2ad1af13b7141673a26f5724c9028ec16767127f 100644
--- a/base/path_service.cc
+++ b/base/path_service.cc
@@ -205,6 +205,10 @@ bool PathService::Get(int key, FilePath* result) {
return true;
}
+void PathService::Set(int key, const FilePath& path) {
+ AddToCache(key, path);
+}
+
bool PathService::Override(int key, const FilePath& path) {
PathData* path_data = GetPathData();
DCHECK(path_data);

Powered by Google App Engine
This is Rietveld 408576698