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

Unified Diff: chrome/default_plugin/plugin_impl_win.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_win.cc
diff --git a/chrome/default_plugin/plugin_impl_win.cc b/chrome/default_plugin/plugin_impl_win.cc
index d61228b5435066ceac471f9b5881695493f8c8f4..4e1317d7d3ef56f9ec279a1029c0307e8a7dca02 100644
--- a/chrome/default_plugin/plugin_impl_win.cc
+++ b/chrome/default_plugin/plugin_impl_win.cc
@@ -72,7 +72,7 @@ bool PluginInstallerImpl::Initialize(HINSTANCE module_handle, NPP instance,
DCHECK(instance != NULL);
DCHECK(module_handle != NULL);
- if (mime_type == NULL || strlen(mime_type) == 0) {
+ if (mime_type == NULL || *mime_type == '0') {
tony 2011/10/20 20:24:54 Missing \
grt (UTC plus 2) 2011/10/20 20:52:31 My mission for today is to prove the value of code
NOTREACHED() << __FUNCTION__ << " Invalid parameters passed in";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698