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

Unified Diff: content/common/content_paths.cc

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 years, 4 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 | « content/common/content_paths.h ('k') | content/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_paths.cc
diff --git a/content/common/content_paths.cc b/content/common/content_paths.cc
index 4e9b32beccc836049c487f403ea08f7e754b5be0..2664349aa4f40244f6b14a4b41350f948a42f097 100644
--- a/content/common/content_paths.cc
+++ b/content/common/content_paths.cc
@@ -4,6 +4,7 @@
#include "content/common/content_paths.h"
+#include "base/file_util.h"
#include "base/path_service.h"
namespace content {
@@ -12,8 +13,22 @@ bool PathProvider(int key, FilePath* result) {
switch (key) {
case CHILD_PROCESS_EXE:
return PathService::Get(base::FILE_EXE, result);
- default:
+ case DIR_TEST_DATA: {
+ FilePath cur;
+ if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("content"));
+ cur = cur.Append(FILE_PATH_LITERAL("test"));
+ cur = cur.Append(FILE_PATH_LITERAL("data"));
+ if (!file_util::PathExists(cur)) // we don't want to create this
+ return false;
+
+ *result = cur;
+ return true;
break;
+ }
+ default:
+ return false;
}
return false;
« no previous file with comments | « content/common/content_paths.h ('k') | content/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698