diff options
Diffstat (limited to 'chrome/plugin/chrome_plugin_host.cc')
-rw-r--r-- | chrome/plugin/chrome_plugin_host.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc index 690bf05..fcef53c 100644 --- a/chrome/plugin/chrome_plugin_host.cc +++ b/chrome/plugin/chrome_plugin_host.cc @@ -428,6 +428,7 @@ int STDCALL CPB_GetBrowsingContextInfo( void* buf, uint32 buf_size) { CHECK(ChromePluginLib::IsPluginThread()); +#if defined(OS_WIN) switch (type) { case CPBROWSINGCONTEXT_DATA_DIR_PTR: { if (buf_size < sizeof(char*)) @@ -437,7 +438,7 @@ int STDCALL CPB_GetBrowsingContextInfo( GetSwitchValuePath(switches::kPluginDataDir); DCHECK(!path.empty()); std::string retval = WideToUTF8( - path.Append(chrome::kChromePluginDataDirname).ToWStringHack()); + path.Append(chrome::kChromePluginDataDirname).value()); *static_cast<char**>(buf) = CPB_StringDup(CPB_Alloc, retval); return CPERR_SUCCESS; @@ -451,6 +452,10 @@ int STDCALL CPB_GetBrowsingContextInfo( return CPERR_SUCCESS; } } +#else + // TODO(aa): this code is only used by Gears, which we are removing. + NOTREACHED(); +#endif return CPERR_FAILURE; } |