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

Unified Diff: chrome/common/chrome_paths.cc

Issue 2709783002: Add DIR_ROAMING_USER_DATA to PathService. (Closed)
Patch Set: Address comment. Created 3 years, 10 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
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 122dd542eef10baa5ac77e6c67f3e42f27321892..d33af32d57de336abb1903ae66b65a6bfe104214 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -241,6 +241,13 @@ bool PathProvider(int key, base::FilePath* result) {
return false;
cur = cur.Append(FILE_PATH_LITERAL("Diagnostics"));
break;
+ case chrome::DIR_ROAMING_USER_DATA:
+ if (!GetDefaultRoamingUserDataDirectory(&cur)) {
+ NOTREACHED();
+ return false;
+ }
+ create_dir = true;
+ break;
#endif
case chrome::DIR_RESOURCES:
#if defined(OS_MACOSX)
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698