chromium/components/bookmarks/browser/bookmark_uuids.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/bookmarks/browser/bookmark_uuids.h"

namespace bookmarks {

// Below predefined UUIDs for permanent bookmark folders, determined via named
// UUIDs/UUIDs. Do NOT modify them as they may be exposed via Sync. Once a
// constant is added, make sure to add it to the set at the bottom of this file.
// For reference, here's the python script to produce them:
// > import uuid
// > chromium_namespace = uuid.uuid5(uuid.NAMESPACE_DNS, "chromium.org")
// > bookmarks_namespace = uuid.uuid5(chromium_namespace, "bookmarks")
// > my_bookmark_id = uuid.uuid5(bookmarks_namespace, "my_bookmark_id")

// > uuid.uuid5(bookmarks_namespace, "root")
const char kRootNodeUuid[] =;

// > uuid.uuid5(bookmarks_namespace, "bookmark_bar")
const char kBookmarkBarNodeUuid[] =;

// > uuid.uuid5(bookmarks_namespace, "other_bookmarks")
const char kOtherBookmarksNodeUuid[] =;

// > uuid.uuid5(bookmarks_namespace, "mobile_bookmarks")
const char kMobileBookmarksNodeUuid[] =;

// > uuid.uuid5(bookmarks_namespace, "managed_bookmarks")
const char kManagedNodeUuid[] =;

// > uuid.uuid5(bookmarks_namespace, "shopping_collection_m118")
// "shopping_collection" is not used due to a bug involving that ID on M-117,
//  see https://crbug.com/1484372 for details.
const char kShoppingCollectionUuid[] =;

// This value is the result of exercising sync's function
// syncer::InferGuidForLegacyBookmark() with an empty input.
const char kBannedUuidDueToPastSyncBug[] =;

}  // namespace bookmarks