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

Side by Side Diff: chrome/browser/component_updater/component_updater_utils.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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/component_updater/component_updater_utils.h" 5 #include "chrome/browser/component_updater/component_updater_utils.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 id.append(1, val + 'a'); 179 id.append(1, val + 'a');
180 } else { 180 } else {
181 id.append(1, 'a'); 181 id.append(1, 'a');
182 } 182 }
183 } 183 }
184 DCHECK(extensions::Extension::IdIsValid(id)); 184 DCHECK(extensions::Extension::IdIsValid(id));
185 return id; 185 return id;
186 } 186 }
187 187
188 std::string GetCrxComponentID(const CrxComponent& component) { 188 std::string GetCrxComponentID(const CrxComponent& component) {
189 return HexStringToID(StringToLowerASCII( 189 return HexStringToID(base::StringToLowerASCII(
190 base::HexEncode(&component.pk_hash[0], component.pk_hash.size() / 2))); 190 base::HexEncode(&component.pk_hash[0], component.pk_hash.size() / 2)));
191 } 191 }
192 192
193 } // namespace component_updater 193 } // namespace component_updater
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/token_encryptor.cc ('k') | chrome/browser/enumerate_modules_model_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698