summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support_glue.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 07:40:11 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 07:40:11 +0000
commit4ee00de9fe594f1b11f24e3b21520f50688ad5ce (patch)
treea78d2e07aacceb1c5c17c6ee81af9b67c9752e80 /webkit/support/webkit_support_glue.cc
parentc70f9b84b30986220dc58993a9a41d6fdebefac2 (diff)
downloadchromium_src-4ee00de9fe594f1b11f24e3b21520f50688ad5ce.zip
chromium_src-4ee00de9fe594f1b11f24e3b21520f50688ad5ce.tar.gz
chromium_src-4ee00de9fe594f1b11f24e3b21520f50688ad5ce.tar.bz2
Fix DRT build on Windows.
The main fix is to stub out default_plugin when building upstream. Review URL: http://codereview.chromium.org/1658012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support_glue.cc')
-rw-r--r--webkit/support/webkit_support_glue.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/webkit/support/webkit_support_glue.cc b/webkit/support/webkit_support_glue.cc
index d735521..bc4cd0b 100644
--- a/webkit/support/webkit_support_glue.cc
+++ b/webkit/support/webkit_support_glue.cc
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "webkit/glue/webkit_glue.h"
+
+#include "base/base_paths.h"
+#include "base/path_service.h"
#include "googleurl/src/gurl.h"
#include "webkit/glue/plugins/plugin_list.h"
-#include "webkit/glue/webkit_glue.h"
// Functions needed by webkit_glue.
@@ -25,6 +28,14 @@ bool IsPluginRunningInRendererProcess() {
void AppendToLog(const char*, int, const char*) {
}
+bool GetApplicationDirectory(FilePath* path) {
+ return PathService::Get(base::DIR_EXE, path);
+}
+
+bool GetExeDirectory(FilePath* path) {
+ return GetApplicationDirectory(path);
+}
+
bool IsProtocolSupportedForMedia(const GURL& url) {
if (url.SchemeIsFile() ||
url.SchemeIs("http") ||