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

Unified Diff: base/guid.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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') | base/guid_posix.cc » ('j') | 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
deleted file mode 100644
index be5c58b53599d43a96e26168b0d4be9db546bb7f..0000000000000000000000000000000000000000
--- a/base/guid.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/guid.h"
-
-#include "base/strings/string_util.h"
-
-namespace base {
-
-bool IsValidGUID(const std::string& guid) {
- const size_t kGUIDLength = 36U;
- if (guid.length() != kGUIDLength)
- return false;
-
- for (size_t i = 0; i < guid.length(); ++i) {
- char current = guid[i];
- if (i == 8 || i == 13 || i == 18 || i == 23) {
- if (current != '-')
- return false;
- } else {
- if (!IsHexDigit(current))
- return false;
- }
- }
-
- return true;
-}
-
-} // namespace base
« no previous file with comments | « base/guid.h ('k') | base/guid_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698