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

Unified Diff: base/guid_posix.cc

Issue 5849001: Move GUID utils to src/chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years 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
« base/guid.h ('K') | « base/guid.cc ('k') | base/guid_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/guid_posix.cc
diff --git a/chrome/browser/guid_posix.cc b/base/guid_posix.cc
similarity index 92%
rename from chrome/browser/guid_posix.cc
rename to base/guid_posix.cc
index 48d719826f334639d0837acde234bb086b40eb02..9a83bf0c095706a1faef615eac9a644c061e9be7 100644
--- a/chrome/browser/guid_posix.cc
+++ b/base/guid_posix.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/guid.h"
+#include "base/guid.h"
#include "base/rand_util.h"
#include "base/stringprintf.h"
-namespace guid {
+namespace base {
std::string GenerateGUID() {
uint64 sixteen_bytes[2] = { base::RandUint64(), base::RandUint64() };
@@ -25,4 +25,4 @@ std::string RandomDataToGUIDString(const uint64 bytes[2]) {
bytes[1] & 0x0000ffffffffffffULL);
}
-} // namespace guid
+} // namespace base
« base/guid.h ('K') | « base/guid.cc ('k') | base/guid_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698