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

Side by Side Diff: components/ssl_errors/error_classification.cc

Issue 1544283002: Clean up header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/signin/core/browser/signin_metrics.cc ('k') | components/variations/metrics_util.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/ssl_errors/error_classification.h" 5 #include "components/ssl_errors/error_classification.h"
6 6
7 #include <limits.h>
7 #include <stddef.h> 8 #include <stddef.h>
8 9
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/build_time.h" 12 #include "base/build_time.h"
12 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
13 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
14 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
15 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
16 #include "base/time/time.h" 17 #include "base/time/time.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 return std::find(dns_names_domain.begin(), dns_names_domain.end() - 1, 416 return std::find(dns_names_domain.begin(), dns_names_domain.end() - 1,
416 host_name_domain) != dns_names_domain.end() - 1; 417 host_name_domain) != dns_names_domain.end() - 1;
417 } 418 }
418 419
419 bool IsHostnameNonUniqueOrDotless(const std::string& hostname) { 420 bool IsHostnameNonUniqueOrDotless(const std::string& hostname) {
420 return net::IsHostnameNonUnique(hostname) || 421 return net::IsHostnameNonUnique(hostname) ||
421 hostname.find('.') == std::string::npos; 422 hostname.find('.') == std::string::npos;
422 } 423 }
423 424
424 } // namespace ssl_errors 425 } // namespace ssl_errors
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_metrics.cc ('k') | components/variations/metrics_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698