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

Unified Diff: base/base_paths_mac.mm

Issue 10970019: Fix PathServiceTest.Get on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Return false on iOS. Created 8 years, 3 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 | « no previous file | base/path_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_mac.mm
diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm
index 2227d7d8ad7d8e8f1ee9a537b3ac31342537cd9f..630f742a9ffbd16ac5e3779b1a99065714227397 100644
--- a/base/base_paths_mac.mm
+++ b/base/base_paths_mac.mm
@@ -92,7 +92,13 @@ bool PathProviderMac(int key, FilePath* result) {
#endif
return true;
case base::DIR_USER_DESKTOP:
+#if defined(OS_IOS)
+ // iOS does not have desktop directories.
+ NOTIMPLEMENTED();
+ return false;
+#else
return base::mac::GetUserDirectory(NSDesktopDirectory, result);
+#endif
case base::DIR_CACHE:
return base::mac::GetUserDirectory(NSCachesDirectory, result);
case base::DIR_HOME:
« no previous file with comments | « no previous file | base/path_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698