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

Side by Side Diff: webkit/activex_shim/activex_shared.cc

Issue 165297: Replaces some TrimWhitespace with TrimWhitespaceASCII or TrimWhitespaceUTF8.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: hunspell fix Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/tools/convert_dict/hunspell_reader.cc ('k') | webkit/glue/plugins/plugin_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/activex_shim/activex_shared.h" 5 #include "webkit/activex_shim/activex_shared.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return false; 119 return false;
120 return MatchUrlForPatterns(url, attr->allowed_codebase_sites); 120 return MatchUrlForPatterns(url, attr->allowed_codebase_sites);
121 } 121 }
122 122
123 bool GetClsidFromClassidAttribute(const std::string& classid, 123 bool GetClsidFromClassidAttribute(const std::string& classid,
124 std::string* clsid) { 124 std::string* clsid) {
125 const unsigned int kClsidPrefixSize = 6; 125 const unsigned int kClsidPrefixSize = 6;
126 if (classid.size() > kClsidPrefixSize) { 126 if (classid.size() > kClsidPrefixSize) {
127 std::string prefix = classid.substr(0, kClsidPrefixSize); 127 std::string prefix = classid.substr(0, kClsidPrefixSize);
128 if (LowerCaseEqualsASCII(prefix, "clsid:")) { 128 if (LowerCaseEqualsASCII(prefix, "clsid:")) {
129 TrimWhitespace(classid.substr(kClsidPrefixSize), TRIM_ALL, clsid); 129 TrimWhitespaceASCII(classid.substr(kClsidPrefixSize), TRIM_ALL, clsid);
130 return true; 130 return true;
131 } 131 }
132 } 132 }
133 return false; 133 return false;
134 } 134 }
135 135
136 std::string GetVersionFromCodebaseAttribute(const std::string& codebase) { 136 std::string GetVersionFromCodebaseAttribute(const std::string& codebase) {
137 std::string version; 137 std::string version;
138 size_t pos = codebase.find('#'); 138 size_t pos = codebase.find('#');
139 if (pos == std::string::npos) 139 if (pos == std::string::npos)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 "6BF52A52-394A-11D3-B153-00C04F79FAA6") || 232 "6BF52A52-394A-11D3-B153-00C04F79FAA6") ||
233 !base::strcasecmp(clsid.c_str(), 233 !base::strcasecmp(clsid.c_str(),
234 "22D6F312-B0F6-11D0-94AB-0080C74C7E95")) { 234 "22D6F312-B0F6-11D0-94AB-0080C74C7E95")) {
235 *mime_type = "application/x-mplayer2"; 235 *mime_type = "application/x-mplayer2";
236 return true; 236 return true;
237 } 237 }
238 return false; 238 return false;
239 } 239 }
240 240
241 } // namespace activex_shim 241 } // namespace activex_shim
OLDNEW
« no previous file with comments | « chrome/tools/convert_dict/hunspell_reader.cc ('k') | webkit/glue/plugins/plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698