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

Unified Diff: webkit/glue/plugins/test/plugin_test.cc

Issue 1661: port some parts of webkit/glue/plugins/test to Linux... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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: webkit/glue/plugins/test/plugin_test.cc
===================================================================
--- webkit/glue/plugins/test/plugin_test.cc (revision 2052)
+++ webkit/glue/plugins/test/plugin_test.cc (working copy)
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/string_util.h"
#include "webkit/glue/plugins/test/plugin_test.h"
#include "webkit/glue/plugins/test/npapi_constants.h"
@@ -32,7 +33,7 @@
// end up using libicu, which is a string of dependencies we don't
// want.
-inline BYTE toHex(const BYTE &x) {
+inline unsigned char toHex(const unsigned char &x) {
return x > 9 ? x + 55: x + 48;
Mark Mentovai 2008/09/16 17:53:36 Existing code, but I think this is far less obtuse
}
@@ -88,7 +89,7 @@
const char *PluginTest::GetArgValue(const char *name, const int16 argc,
const char *argn[], const char *argv[]) {
for (int idx = 0; idx < argc; idx++)
- if (_stricmp(argn[idx], name) == 0)
+ if (base::strcasecmp(argn[idx], name) == 0)
return argv[idx];
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698