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

Unified Diff: chrome/default_plugin/plugin_impl_gtk.cc

Issue 8361011: Tweak PathProviderPosix's FILE_EXE and FILE_MODULE handling on FreeBSD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: chrome/default_plugin/plugin_impl_gtk.cc
diff --git a/chrome/default_plugin/plugin_impl_gtk.cc b/chrome/default_plugin/plugin_impl_gtk.cc
index 378e80d19e65558122d1ed286638231c84eab75f..fcc9ae27a03f91db84b4b5ae966d4079fe72a922 100644
--- a/chrome/default_plugin/plugin_impl_gtk.cc
+++ b/chrome/default_plugin/plugin_impl_gtk.cc
@@ -40,7 +40,7 @@ bool PluginInstallerImpl::Initialize(void* module_handle, NPP instance,
DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type;
DCHECK(instance != NULL);
- if (mime_type == NULL || strlen(mime_type) == 0) {
+ if (mime_type == NULL || *mime_type == L'\0') {
tony 2011/10/20 20:24:54 Why L?
grt (UTC plus 2) 2011/10/20 20:52:31 Because I goofed.
DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in";
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698