[Extensions UI Mac] Make extensions overflow menu keyboard-accessible
[chromium-blink-merge.git] / base / trace_event / memory_allocator_dump_guid.cc
bloba4ea50d416a0d5bd784e7c74501f77ad45d7b49f
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/trace_event/memory_allocator_dump_guid.h"
7 #include "base/format_macros.h"
8 #include "base/hash.h"
9 #include "base/strings/stringprintf.h"
11 namespace base {
12 namespace trace_event {
14 MemoryAllocatorDumpGuid::MemoryAllocatorDumpGuid(uint64 guid) : guid_(guid) {
17 MemoryAllocatorDumpGuid::MemoryAllocatorDumpGuid()
18 : MemoryAllocatorDumpGuid(0u) {
21 MemoryAllocatorDumpGuid::MemoryAllocatorDumpGuid(const std::string& guid_str)
22 : MemoryAllocatorDumpGuid(Hash(guid_str)) {
25 std::string MemoryAllocatorDumpGuid::ToString() const {
26 return StringPrintf("%" PRIx64, guid_);
29 } // namespace trace_event
30 } // namespace base