diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 17:11:38 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 17:11:38 +0000 |
commit | 250afeb703e63e5b8b96bd449b9e0caefa642524 (patch) | |
tree | f4f1006a5bbed7f500c5cd30c1a5f3c61bd45ea1 /webkit | |
parent | 2c7dfa93ba5198035d17abb540a93a73956a9e7a (diff) | |
download | chromium_src-250afeb703e63e5b8b96bd449b9e0caefa642524.zip chromium_src-250afeb703e63e5b8b96bd449b9e0caefa642524.tar.gz chromium_src-250afeb703e63e5b8b96bd449b9e0caefa642524.tar.bz2 |
Remove 1 destructor that runs at exit.
BUG=101600
TEST=none
Review URL: http://codereview.chromium.org/8392018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/appcache/manifest_parser.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/appcache/manifest_parser.cc b/webkit/appcache/manifest_parser.cc index 1422bc6..07125b7 100644 --- a/webkit/appcache/manifest_parser.cc +++ b/webkit/appcache/manifest_parser.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -58,7 +58,8 @@ bool ParseManifest(const GURL& manifest_url, const char* data, int length, // Though you might be tempted to convert these wstrings to UTF-8 or // string16, this implementation seems simpler given the constraints. - static const std::wstring kSignature(L"CACHE MANIFEST"); + const wchar_t kSignature[] = L"CACHE MANIFEST"; + const size_t kSignatureLength = arraysize(kSignature) - 1; DCHECK(manifest.explicit_urls.empty()); DCHECK(manifest.fallback_namespaces.empty()); @@ -89,11 +90,11 @@ bool ParseManifest(const GURL& manifest_url, const char* data, int length, } if (p >= end || - data_string.compare(bom_offset, kSignature.length(), kSignature)) { + data_string.compare(bom_offset, kSignatureLength, kSignature)) { return false; } - p += kSignature.length(); // Skip past "CACHE MANIFEST" + p += kSignatureLength; // Skip past "CACHE MANIFEST" // Character after "CACHE MANIFEST" must be whitespace. if (p < end && *p != ' ' && *p != '\t' && *p != '\n' && *p != '\r') |