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

Side by Side Diff: chrome/browser/profile_resetter/jtl_foundation.cc

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « chrome/browser/internal_auth.cc ('k') | chrome/browser/shell_integration_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/profile_resetter/jtl_foundation.h" 5 #include "chrome/browser/profile_resetter/jtl_foundation.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 return cached_hashes_[input]; 33 return cached_hashes_[input];
34 } 34 }
35 35
36 // static 36 // static
37 bool Hasher::IsHash(const std::string& maybe_hash) { 37 bool Hasher::IsHash(const std::string& maybe_hash) {
38 if (maybe_hash.size() != kHashSizeInBytes) 38 if (maybe_hash.size() != kHashSizeInBytes)
39 return false; 39 return false;
40 for (std::string::const_iterator it = maybe_hash.begin(); 40 for (std::string::const_iterator it = maybe_hash.begin();
41 it != maybe_hash.end(); ++it) { 41 it != maybe_hash.end(); ++it) {
42 if (!IsHexDigit(*it)) 42 if (!base::IsHexDigit(*it))
43 return false; 43 return false;
44 } 44 }
45 return true; 45 return true;
46 } 46 }
47 47
48 } // namespace jtl_foundation 48 } // namespace jtl_foundation
OLDNEW
« no previous file with comments | « chrome/browser/internal_auth.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698