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

Side by Side Diff: chrome/common/net/x509_certificate_model.cc

Issue 450053003: Use a qualified path for grit includes in various chrome/ directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove webkit strings that no longer exist Created 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/net/x509_certificate_model.h" 5 #include "chrome/common/net/x509_certificate_model.h"
6 6
7 #include <unicode/uidna.h> 7 #include <unicode/uidna.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
13 #include "net/base/net_util.h" 13 #include "net/base/net_util.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 namespace x509_certificate_model { 16 namespace x509_certificate_model {
17 17
18 std::string ProcessIDN(const std::string& input) { 18 std::string ProcessIDN(const std::string& input) {
19 // Convert the ASCII input to a string16 for ICU. 19 // Convert the ASCII input to a string16 for ICU.
20 base::string16 input16; 20 base::string16 input16;
21 input16.reserve(input.length()); 21 input16.reserve(input.length());
22 input16.insert(input16.end(), input.begin(), input.end()); 22 input16.insert(input16.end(), input.begin(), input.end());
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 #if defined(USE_NSS) 68 #if defined(USE_NSS)
69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) { 69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) {
70 return ProcessRawBytes(data, (data_length + 7) / 8); 70 return ProcessRawBytes(data, (data_length + 7) / 8);
71 } 71 }
72 #endif // USE_NSS 72 #endif // USE_NSS
73 73
74 } // namespace x509_certificate_model 74 } // namespace x509_certificate_model
75 75
OLDNEW
« no previous file with comments | « chrome/common/net/net_resource_provider.cc ('k') | chrome/common/net/x509_certificate_model_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698