Index: extensions/shell/browser/shell_nacl_browser_delegate.cc |
diff --git a/extensions/shell/browser/shell_nacl_browser_delegate.cc b/extensions/shell/browser/shell_nacl_browser_delegate.cc |
index 778763b0b4b6c14b56a023f23b83bee1ed48ae85..668c3d8a23e47c897590658a002c4eda210d3a81 100644 |
--- a/extensions/shell/browser/shell_nacl_browser_delegate.cc |
+++ b/extensions/shell/browser/shell_nacl_browser_delegate.cc |
@@ -6,6 +6,7 @@ |
#include <string> |
+#include "base/base_paths.h" |
#include "base/command_line.h" |
#include "base/path_service.h" |
#include "base/strings/string_split.h" |
@@ -83,7 +84,12 @@ bool ShellNaClBrowserDelegate::DialogsAreSuppressed() { |
bool ShellNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) { |
// Just use the general cache directory, not a subdirectory like Chrome does. |
+#if defined(OS_POSIX) |
return PathService::Get(base::DIR_CACHE, cache_dir); |
+#elif defined(OS_WIN) |
+ // TODO(yoz): Find an appropriate persistent directory to use here. |
+ return PathService::Get(base::DIR_TEMP, cache_dir); |
+#endif |
} |
bool ShellNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) { |