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

Unified Diff: chrome/common/chrome_paths.cc

Issue 2709783002: Add DIR_ROAMING_USER_DATA to PathService. (Closed)
Patch Set: Fix upstream branch. 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
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index d490a6f7e73ef909cad84d290ad076d4c8c16646..12766e11753737bf3bfc1cbc9da33632514131c8 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -248,6 +248,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)

Powered by Google App Engine
This is Rietveld 408576698