diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 01:27:29 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 01:27:29 +0000 |
commit | 0e6860191f3dd4b4bf00ef71336b72c63d319180 (patch) | |
tree | 28ec9b21e5152e2602b6d808d42c9414b7027efa /chrome/renderer/renderer_glue.cc | |
parent | 0b3b9bccd669b11b9e05e83ba5bbe05d1c8e8900 (diff) | |
download | chromium_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/renderer/renderer_glue.cc')
-rw-r--r-- | chrome/renderer/renderer_glue.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc index 3bd9edf..a1f03b0 100644 --- a/chrome/renderer/renderer_glue.cc +++ b/chrome/renderer/renderer_glue.cc @@ -164,13 +164,8 @@ void AppendToLog(const char* file, int line, const char* msg) { bool GetMimeTypeFromExtension(const std::wstring &ext, std::string *mime_type) { -#if defined(OS_WIN) - // TODO(port): Need to define IsPluginProcess. if (IsPluginProcess()) return net::GetMimeTypeFromExtension(ext, mime_type); -#else - NOTIMPLEMENTED(); -#endif // The sandbox restricts our access to the registry, so we need to proxy // these calls over to the browser process. @@ -182,13 +177,8 @@ bool GetMimeTypeFromExtension(const std::wstring &ext, bool GetMimeTypeFromFile(const std::wstring &file_path, std::string *mime_type) { -#if defined(OS_WIN) - // TODO(port): Need to define IsPluginProcess. if (IsPluginProcess()) return net::GetMimeTypeFromFile(file_path, mime_type); -#else - NOTIMPLEMENTED(); -#endif // The sandbox restricts our access to the registry, so we need to proxy // these calls over to the browser process. @@ -200,13 +190,8 @@ bool GetMimeTypeFromFile(const std::wstring &file_path, bool GetPreferredExtensionForMimeType(const std::string& mime_type, std::wstring* ext) { -#if defined(OS_WIN) - // TODO(port): Need to define IsPluginProcess. if (IsPluginProcess()) return net::GetPreferredExtensionForMimeType(mime_type, ext); -#else - NOTIMPLEMENTED(); -#endif // The sandbox restricts our access to the registry, so we need to proxy // these calls over to the browser process. |