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

Unified Diff: base/guid.cc

Issue 24767002: Minor clean-up in base/guid.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/guid.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/guid.cc
diff --git a/base/guid.cc b/base/guid.cc
index 657383fc2425f3d3c39c62d2c5ba1dbd0467c45a..b7d79f22790da1da990bacc6f7b1073a751c6b79 100644
--- a/base/guid.cc
+++ b/base/guid.cc
@@ -4,9 +4,6 @@
#include "base/guid.h"
-#include "base/rand_util.h"
-#include "base/strings/stringprintf.h"
-
namespace base {
bool IsValidGUID(const std::string& guid) {
@@ -14,7 +11,7 @@ bool IsValidGUID(const std::string& guid) {
if (guid.length() != kGUIDLength)
return false;
- std::string hexchars = "0123456789ABCDEF";
+ const std::string hexchars = "0123456789ABCDEF";
for (uint32 i = 0; i < guid.length(); ++i) {
char current = guid[i];
if (i == 8 || i == 13 || i == 18 || i == 23) {
@@ -29,4 +26,4 @@ bool IsValidGUID(const std::string& guid) {
return true;
}
-} // namespace guid
+} // namespace base
« no previous file with comments | « base/guid.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698