summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 01:27:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 01:27:29 +0000
commit0e6860191f3dd4b4bf00ef71336b72c63d319180 (patch)
tree28ec9b21e5152e2602b6d808d42c9414b7027efa /chrome/common
parent0b3b9bccd669b11b9e05e83ba5bbe05d1c8e8900 (diff)
downloadchromium_src-0e6860191f3dd4b4bf00ef71336b72c63d319180.zip
chromium_src-0e6860191f3dd4b4bf00ef71336b72c63d319180.tar.gz
chromium_src-0e6860191f3dd4b4bf00ef71336b72c63d319180.tar.bz2
Add a stub IsPluginProcess so there are less #if defined(OS_WIN) in the code.
Review URL: http://codereview.chromium.org/19692 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/common_glue.cc6
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc7
2 files changed, 6 insertions, 7 deletions
diff --git a/chrome/common/common_glue.cc b/chrome/common/common_glue.cc
index 0e173f80..7d957d9 100644
--- a/chrome/common/common_glue.cc
+++ b/chrome/common/common_glue.cc
@@ -23,13 +23,7 @@ bool GetApplicationDirectory(std::wstring *path) {
}
bool IsPluginRunningInRendererProcess() {
-#if defined(OS_WIN)
return !IsPluginProcess();
-#else
- // TODO(port): We need an implementation of IsPluginProcess.
- NOTIMPLEMENTED();
- return false;
-#endif
}
std::wstring GetWebKitLocale() {
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index acb7298..735a48e7 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -232,9 +232,14 @@ bool RLZTracker::RecordProductEvent(Product product, AccessPoint point,
return false;
}
+// This depends on porting all the plugin IPC messages.
+bool IsPluginProcess() {
+ return false;
+}
+
#if defined(OS_MACOSX)
// We link this in for now to avoid hauling in all of WebCore (which we will
-// have to eventually do)
+// have to eventually do).
namespace webkit_glue {
std::string GetUserAgent(const GURL& url) {
return "";